Exemple #1
0
 /**
  * This function is the stn.
  *
  * @access public
  * @author arnold:tserepov <*****@*****.**>
  * @uses MENU_COMMON for the common menu
  * @uses MENU_OUTER for the menu of outer links
  * @uses MENU_INNER for the menu of inner links
  * @uses View for the visual part
  */
 public static function start()
 {
     require_once dirname(__FILE__) . '/MenuElement.php';
     require_once dirname(__FILE__) . '/Service.php';
     $services = \tuts\Service::getListOfTypeService(array('forAutocompletion' => false));
     // echo ' 41: <pre>';var_dump($services); echo '</pre>';
     $blockOfServices = '';
     foreach ($services as $idService => $service) {
         require_once dirname(__FILE__) . '/ServiceView.php';
         $blockOfServices .= \tuts\ServiceView::buildService(array('service' => $service['object']));
     }
     $logos = '';
     require_once dirname(__FILE__) . '/Logo.php';
     $arrayOfLogos = \tuts\Logo::getListOfTypeLogo(array('forAutocompletion' => false));
     foreach ($arrayOfLogos as $idLogo => $arrayOfLogo) {
         require_once dirname(__FILE__) . '/LogoView.php';
         $logos .= \tuts\LogoView::buildLogo(array('logo' => $arrayOfLogo['object']));
     }
     require_once dirname(__FILE__) . '/Human.php';
     $designer = new \tuts\Human();
     $designer->setId(ID_OF_DESIGNER);
     $designer->setCompleteHuman();
     require_once dirname(__FILE__) . '/Model.php';
     \tuts\Model::setComplete();
     require_once dirname(__FILE__) . '/MenuView.php';
     require_once dirname(__FILE__) . '/View.php';
     echo ' 69: <pre>';
     var_dump($commonMenu);
     echo '</pre>';
     echo \tuts\View::buildView(array('address' => Model::getAddress(), 'blogDate' => Model::getBlogDate(), 'blogEntry' => Model::getBlogEntry(), 'designer' => $designer, 'logos' => $logos, 'menus' => array(MENU_COMMON => MenuView::buildMenu(array('type' => MENU_COMMON)), MENU_OUTER => MenuView::buildMenu(array('type' => MENU_OUTER)), MENU_INNER => MenuView::buildMenu(array('type' => MENU_INNER))), 'phoneNumber' => Model::getPhoneNumber(), 'services' => $blockOfServices, 'title' => Model::getTitle(), 'twitter' => Model::getTwitter()));
 }
Exemple #2
0
 /**
  * This function is the stn.
  *
  * @access public
  * @author kalmer:piiskop <*****@*****.**>
  * @uses View for the visual part
  */
 public static function start()
 {
     require_once dirname(__FILE__) . '/MenuElement.php';
     $menuElements = \tuts\MenuElement::getListOfTypeMenuElement(array('forAutocompletion' => false));
     $menu = '';
     foreach ($menuElements as $idMenuElement => $menuElement) {
         require_once dirname(__FILE__) . '/MenuElementView.php';
         $menu .= \tuts\MenuElementView::buildMenuElement(array('menuElement' => $menuElement['object']));
     }
     require_once dirname(__FILE__) . '/Service.php';
     $services = \tuts\Service::getListOfTypeService(array('forAutocompletion' => false));
     // 		echo ' 41: <pre>';var_dump($services); echo '</pre>';
     $blockOfServices = '';
     foreach ($services as $idService => $service) {
         require_once dirname(__FILE__) . '/ServiceView.php';
         $blockOfServices .= \tuts\ServiceView::buildService(array('service' => $service['object']));
     }
     require_once dirname(__FILE__) . '/View.php';
     echo \tuts\View::buildView(array('menu' => $menu, 'services' => $blockOfServices));
 }
Exemple #3
0
 /**
  * This function is the stn.
  * 
  * @access public
  */
 public static function start()
 {
     require_once dirname(__FILE__) . '/MenuElement.php';
     require_once dirname(__FILE__) . '/Service.php';
     $services = \tuts\Service::getListOfTypeService(array('forAutocompletion' => false));
     // echo ' 41: <pre>';var_dump($services); echo '</pre>';
     $blockOfServices = '';
     foreach ($services as $idService => $service) {
         require_once dirname(__FILE__) . '/ServiceView.php';
         $blockOfServices .= \tuts\ServiceView::buildService(array('service' => $service['object']));
     }
     $logos = '';
     require_once dirname(__FILE__) . '/Logo.php';
     $arrayOfLogos = \tuts\Logo::getListOfTypeLogo(array('forAutocompletion' => false));
     foreach ($arrayOfLogos as $idLogo => $arrayOfLogo) {
         require_once dirname(__FILE__) . '/LogoView.php';
         $logos .= \tuts\LogoView::buildLogo(array('logo' => $arrayOfLogo['object']));
     }
     require_once dirname(__FILE__) . '/Model.php';
     \tuts\Model::setComplete();
     require_once dirname(__FILE__) . '/MenuView.php';
     require_once dirname(__FILE__) . '/View.php';
     echo \tuts\View::buildView(array('logos' => $logos, 'services' => $blockOfServices, 'menus' => array(MENU_COMMON => MenuView::buildMenu(array('type' => MENU_COMMON)), MENU_OUTER => MenuView::buildMenu(array('type' => MENU_OUTER)), MENU_INNER => MenuView::buildMenu(array('type' => MENU_INNER)))));
 }