コード例 #1
0
 /**
  * 
  * admin main page function.
  */
 public static function adminPages()
 {
     self::createDBTables();
     parent::adminPages();
     //require styles by view
     switch (self::$view) {
         case self::VIEW_SLIDERS:
         case self::VIEW_SLIDER:
             self::requireSettings("slider_settings");
             break;
         case self::VIEW_SLIDES:
             break;
         case self::VIEW_SLIDE:
             break;
     }
     self::setMasterView("master_view");
     self::requireView(self::$view);
 }
コード例 #2
0
 /**
  * 
  * set view that will be the master
  */
 protected static function setMasterView($masterView)
 {
     self::$master_view = $masterView;
 }