/** * 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); }
/** * 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); }