示例#1
0
 /**
  * @param $extjsParams
  * @return null
  */
 public function getExtensionMenu($extjsParams)
 {
     // get configuration object
     $this->getConfigurationObject($extjsParams);
     // get extension object
     $this->getExtensionsObject();
     // get all extensions for this user
     $extensions = $this->extObj->getExtensions();
     return $extensions;
 }
示例#2
0
文件: Tca.php 项目: sinso/snowbabel
 /**
  * @param  $pa
  * @param  $fobj
  * @return void
  */
 public function getExtensions($pa, $fobj)
 {
     $extjsParams = NULL;
     $tcaExtensions = array();
     // get configuration object
     $this->getConfigurationObject($extjsParams);
     // get extension object
     $this->getExtensionsObject();
     // get all extensions for this user
     $extensions = $this->extObj->getExtensions();
     if (is_array($extensions)) {
         foreach ($extensions as $extension) {
             $value = array('0' => $extension['ExtensionKey'], '1' => $extension['ExtensionKey']);
             array_push($tcaExtensions, $value);
         }
     }
     $pa['items'] = $tcaExtensions;
 }