Example #1
0
 /**
  * This function does anything we want.
  * Sometimes we want it to build something. Then, the result will be
  * returned.
  *
  * @access public
  * @return string
  * @uses \shiporder\Item for items list
  * @uses \shiporder\ItemView for the visual part of the list
  */
 public static function start()
 {
     require_once dirname(__FILE__) . '/Item.php';
     $items = \shiporder\Item::getListOfTypeItem(array());
     require_once dirname(__FILE__) . '/ItemView.php';
     $itemView = \shiporder\ItemView::buildListOfItems(array('items' => $items));
     echo $itemView;
 }
Example #2
0
 /**
  * This function starts the processes with items.
  * 
  * @access public
  * @return string the parsed list of items
  * @uses \shiporder\Item for data
  * @uses \shiporder\ItemView for the visual part
  */
 public static function start()
 {
     //get data
     require_once dirname(__FILE__) . '/Item.php';
     $item = \shiporder\Item::getListOfTypeItem(array());
     //get view
     require_once dirname(__FILE__) . '/ItemView.php';
     $itemView = \shiporder\ItemView::buildListOfItems(array('item' => $item));
     return $itemView;
 }