/** * Instantiates the pod. * @param Toolbox $toolbox A reference to the toolbox that owns this pod. * @param array $data Any data that we wish to instantiate this pod with. * @param string $new Whether this pod should be marked as new (never been saved to the server). */ public function __construct(Toolbox $toolbox, array $data = array(), $new = true) { parent::__construct($toolbox, "vertex", $data, $new); }
/** * Instantiates the pod. * @param Toolbox $toolbox A reference to the toolbox that owns this pod. * @param array $data Any data that we wish to instantiate this pod with. * @param string $new Whether this pod should be marked as new (never been saved to the server). * @param string $internalFrom The id (document handle) of the "from" vertex. * @param string $internalTo The id (document handle) of the "to" vertex. */ public function __construct(Toolbox $toolbox, array $data = array(), $new = true, $internalFrom = null, $internalTo = null) { parent::__construct($toolbox, "edge", $data, $new); $this->setInternalFrom($internalFrom); $this->setInternalTo($internalTo); }