$newOrderPerson->setLastName('tikk'); $newOrderPerson->insert(); echo var_dump(\shiporder\OrderPerson::getListOfTypeOrderPerson(array('forAutocompletion' => false))); //Inserting new ShipTo location $newShipTo = new \shiporder\ShipTo(); $newShipTo->setNameOfRecipient('Peeter'); $newShipTo->setCity('Tallinn'); $newShipTo->setCountry('Estonia'); $newShipTo->insert(); echo var_dump(\shiporder\ShipTo::getListOfTypeShipTo(array('forAutocompletion' => false))); //Inserting a new item $newShipTo = new \shiporder\Item(); $newShipTo->setAmount('50'); $newShipTo->setPriece('30'); $newShipTo->setName('Auto'); $newShipTo->insert(); echo var_dump(\shiporder\Item::getListOfTypeItem(array('forAutocompletion' => false))); class OrderPersonController { public static function start() { require_once dirname(__FILE__) . '/OrderPerson.php'; $orderPersons = \shiporder\OrderPerson::getListOfTypeOrderPerson(array()); require_once dirname(__FILE__) . '/OrderPersonView.php'; $orderPersonView = \shiporder\OrderPersonView::buildListOfOrderPersons(array('orderPersons' => $orderPersons)); echo $orderPersonView; } } //\OrderPerson\OrderPersonController::start(); /* $orderPerson->setFirstName('keijo');