예제 #1
0
 /**
  * Prepends target to node as first child.
  *
  * @param \Phalcon\Mvc\ModelInterface $target the target.
  * @param array $attributes list of attributes.
  * @return boolean whether the prepending succeeds.
  */
 public function prepend($target, $attributes = null)
 {
     return $target->prependTo($this->getOwner(), $attributes);
 }
예제 #2
0
 /**
  * Prepends target to node as first child.
  *
  * @param  ModelInterface $target the target.
  * @param  array $attributes list of attributes.
  * @return boolean
  */
 public function prepend(ModelInterface $target, array $attributes = null)
 {
     return $target->prependTo($this->getOwner(), $attributes);
 }