Beispiel #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;
 }
Beispiel #2
0
 /**
  * @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;
 }