private function createVertex(array $data = array(), $new = true)
    {
        $vertex = new Vertex($this->_toolbox, $data, $new);
        $this->attachEventsToPod($vertex);

        return $this->setupModel($vertex, $vertex);
    }
private function createVertex(array $data = array(), $new = true)
    {
        $vertex = new Vertex($this->_toolbox, $data, $new);
        $this->attachEventsToPod($vertex);

        return $this->setupModel($vertex, $vertex);
    }
private function createVertex ( array $ data = array ( ) , $ new = true ) { $ vertex = new Vertex ( $ this -> _toolbox , $ data , $ new ) ; $ this -> attachEventsToPod ( $ vertex ) ; return $ this -> setupModel ( $ vertex , $ vertex ) ; }
Convinence function to instantiate a vertex, hook up its events and set up its model.
@param array  $data An optional array of data that will be loaded into the vertex.
@param string $new  Whether this pod should be marked as new (never saved to the server).
Convinence function to instantiate a vertex hook up its events and set up its model .