/usr/share/php/propel/om/NodeObject.php is in php-propel-runtime 1.6.9-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 | <?php
/**
* This file is part of the Propel package.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license MIT License
*/
/**
* This interface defines methods that must be implemented by all
* business objects within the system to handle Node object.
*
* @author Heltem <heltem@o2php.com> (Propel)
* @version $Revision$
* @package propel.runtime.om
*/
interface NodeObject extends IteratorAggregate
{
/**
* If object is saved without left/right values, set them as undefined (0)
*
* @param PropelPDO $con Connection to use.
* @return void
* @throws PropelException
*/
public function save(PropelPDO $con = null);
/**
* Delete node and descendants
*
* @param PropelPDO $con Connection to use.
* @return void
* @throws PropelException
*/
public function delete(PropelPDO $con = null);
/**
* Sets node properties to make it a root node.
*
* @return object The current object (for fluent API support)
* @throws PropelException
*/
public function makeRoot();
/**
* Gets the level if set, otherwise calculates this and returns it
*
* @param PropelPDO $con Connection to use.
* @return int
*/
public function getLevel(PropelPDO $con = null);
/**
* Get the path to the node in the tree
*
* @param PropelPDO $con Connection to use.
* @return array
*/
public function getPath(PropelPDO $con = null);
/**
* Gets the number of children for the node (direct descendants)
*
* @param PropelPDO $con Connection to use.
* @return int
*/
public function getNumberOfChildren(PropelPDO $con = null);
/**
* Gets the total number of desceandants for the node
*
* @param PropelPDO $con Connection to use.
* @return int
*/
public function getNumberOfDescendants(PropelPDO $con = null);
/**
* Gets the children for the node
*
* @param PropelPDO $con Connection to use.
* @return array
*/
public function getChildren(PropelPDO $con = null);
/**
* Gets the descendants for the node
*
* @param PropelPDO $con Connection to use.
* @return array
*/
public function getDescendants(PropelPDO $con = null);
/**
* Sets the level of the node in the tree
*
* @param int $v new value
* @return object The current object (for fluent API support)
*/
public function setLevel($level);
/**
* Sets the children array of the node in the tree
*
* @param array of Node $children array of Propel node object
* @return object The current object (for fluent API support)
*/
public function setChildren(array $children);
/**
* Sets the parentNode of the node in the tree
*
* @param Node $parent Propel node object
* @return object The current object (for fluent API support)
*/
public function setParentNode(NodeObject $parent = null);
/**
* Sets the previous sibling of the node in the tree
*
* @param Node $node Propel node object
* @return object The current object (for fluent API support)
*/
public function setPrevSibling(NodeObject $node = null);
/**
* Sets the next sibling of the node in the tree
*
* @param Node $node Propel node object
* @return object The current object (for fluent API support)
*/
public function setNextSibling(NodeObject $node = null);
/**
* Determines if the node is the root node
*
* @return bool
*/
public function isRoot();
/**
* Determines if the node is a leaf node
*
* @return bool
*/
public function isLeaf();
/**
* Tests if object is equal to $node
*
* @param object $node Propel object for node to compare to
* @return bool
*/
public function isEqualTo(NodeObject $node);
/**
* Tests if object has an ancestor
*
* @param PropelPDO $con Connection to use.
* @return bool
*/
public function hasParent(PropelPDO $con = null);
/**
* Determines if the node has children / descendants
*
* @return bool
*/
public function hasChildren();
/**
* Determines if the node has previous sibling
*
* @param PropelPDO $con Connection to use.
* @return bool
*/
public function hasPrevSibling(PropelPDO $con = null);
/**
* Determines if the node has next sibling
*
* @param PropelPDO $con Connection to use.
* @return bool
*/
public function hasNextSibling(PropelPDO $con = null);
/**
* Gets ancestor for the given node if it exists
*
* @param PropelPDO $con Connection to use.
* @return mixed Propel object if exists else false
*/
public function retrieveParent(PropelPDO $con = null);
/**
* Gets first child if it exists
*
* @param PropelPDO $con Connection to use.
* @return mixed Propel object if exists else false
*/
public function retrieveFirstChild(PropelPDO $con = null);
/**
* Gets last child if it exists
*
* @param PropelPDO $con Connection to use.
* @return mixed Propel object if exists else false
*/
public function retrieveLastChild(PropelPDO $con = null);
/**
* Gets prev sibling for the given node if it exists
*
* @param PropelPDO $con Connection to use.
* @return mixed Propel object if exists else false
*/
public function retrievePrevSibling(PropelPDO $con = null);
/**
* Gets next sibling for the given node if it exists
*
* @param PropelPDO $con Connection to use.
* @return mixed Propel object if exists else false
*/
public function retrieveNextSibling(PropelPDO $con = null);
/**
* Inserts as first child of destination node $parent
*
* @param object $parent Propel object for given destination node
* @param PropelPDO $con Connection to use.
* @return object The current object (for fluent API support)
*/
public function insertAsFirstChildOf(NodeObject $parent, PropelPDO $con = null);
/**
* Inserts as last child of destination node $parent
*
* @param object $parent Propel object for given destination node
* @param PropelPDO $con Connection to use.
* @return object The current object (for fluent API support)
*/
public function insertAsLastChildOf(NodeObject $parent, PropelPDO $con = null);
/**
* Inserts node as previous sibling to destination node $dest
*
* @param object $dest Propel object for given destination node
* @param PropelPDO $con Connection to use.
* @return object The current object (for fluent API support)
*/
public function insertAsPrevSiblingOf(NodeObject $dest, PropelPDO $con = null);
/**
* Inserts node as next sibling to destination node $dest
*
* @param object $dest Propel object for given destination node
* @param PropelPDO $con Connection to use.
* @return object The current object (for fluent API support)
*/
public function insertAsNextSiblingOf(NodeObject $dest, PropelPDO $con = null);
/**
* Moves node to be first child of $parent
*
* @param object $parent Propel object for destination node
* @param PropelPDO $con Connection to use.
* @return void
*/
public function moveToFirstChildOf(NodeObject $parent, PropelPDO $con = null);
/**
* Moves node to be last child of $parent
*
* @param object $parent Propel object for destination node
* @param PropelPDO $con Connection to use.
* @return void
*/
public function moveToLastChildOf(NodeObject $parent, PropelPDO $con = null);
/**
* Moves node to be prev sibling to $dest
*
* @param object $dest Propel object for destination node
* @param PropelPDO $con Connection to use.
* @return void
*/
public function moveToPrevSiblingOf(NodeObject $dest, PropelPDO $con = null);
/**
* Moves node to be next sibling to $dest
*
* @param object $dest Propel object for destination node
* @param PropelPDO $con Connection to use.
* @return void
*/
public function moveToNextSiblingOf(NodeObject $dest, PropelPDO $con = null);
/**
* Inserts node as parent of given node.
*
* @param object $node Propel object for given destination node
* @param PropelPDO $con Connection to use.
* @return void
* @throws Exception When trying to insert node as parent of a root node
*/
public function insertAsParentOf(NodeObject $node, PropelPDO $con = null);
/**
* Wraps the getter for the scope value
*
* @return int
*/
public function getScopeIdValue();
/**
* Set the value of scope column
*
* @param int $v new value
* @return object The current object (for fluent API support)
*/
public function setScopeIdValue($v);
} // NodeObject
|