Esempio n. 1
0
 /**
  * Appends target to node as last child.
  *
  * @param \Phalcon\Mvc\ModelInterface $target the target.
  * @param array $attributes list of attributes.
  * @return boolean whether the appending succeeds.
  */
 public function append($target, $attributes = null)
 {
     return $target->appendTo($this->getOwner(), $attributes);
 }
Esempio n. 2
0
 /**
  * Appends target to node as last child.
  *
  * @param  ModelInterface $target the target.
  * @param  array $attributes list of attributes.
  * @return boolean
  */
 public function append(ModelInterface $target, array $attributes = null)
 {
     return $target->appendTo($this->getOwner(), $attributes);
 }