コード例 #1
0
 /**
  * Get the json object for a screen
  * @param AppBuilderAPIElement $screen
  * @internal used by appbuilder
  * @return array
  */
 public static function getScreenAsObj($screen, $refreshAfter = 0)
 {
     $screenObj =& $screen->getObj();
     $obj = array('main' => $screenObj['id'], 'maintype' => $screen instanceof AppBuilderAPIApp ? 'app' : 'screen', 'data' => array('screens' => array(), 'images' => array(), 'items' => array(), 'styles' => array(), 'files' => array()), 'refreshAfter' => $refreshAfter);
     $screen->getObjects($obj['data']);
     return $obj;
 }
コード例 #2
0
 public function &getObj()
 {
     if (!$this->myObj) {
         $obj =& parent::getObj();
         $obj['name'] = $this->title;
         $obj['tabs'] = $this->tabs;
         $obj['header'] = $this->header;
         $obj['css'] = $this->css;
         if (!$this->back) {
             $obj['back'] = false;
         }
     }
     return $this->myObj;
 }
コード例 #3
0
 public function &getObj()
 {
     if (!$this->myObj) {
         $obj =& parent::getObj();
         $obj['name'] = $this->name;
         $obj['description'] = $this->description;
         $myImage =& $this->getImageObject('image');
         if ($myImage) {
             $obj['image'] = $myImage['id'];
         }
         $mySplashImage =& $this->getImageStyleObject('splash');
         if ($mySplashImage) {
             $obj['splash'] = $mySplashImage['id'];
         }
         $obj['css'] = $this->css;
     }
     return $this->myObj;
 }