コード例 #1
0
 public function __construct(&$subject, $params)
 {
     parent::__construct($subject, $params);
     if (!$this->fieldtypes) {
         $this->fieldtypes = self::$field_types;
     }
     $class = strtolower(get_class($this));
     $fieldtype = str_replace('plgflexicontent_fields', '', $class);
     self::$field_types = array_merge(array($fieldtype), self::$field_types);
     $this->fieldtypes = array_merge(array($fieldtype), $this->fieldtypes);
     foreach ($this->fieldtypes as $ft) {
         JPlugin::loadLanguage('plg_flexicontent_fields_' . $fieldtype, JPATH_ADMINISTRATOR);
     }
 }
コード例 #2
0
 function plgFlexicontent_fieldsMinigallery(&$subject, $params)
 {
     parent::__construct($subject, $params);
     JPlugin::loadLanguage('plg_flexicontent_fields_minigallery', JPATH_ADMINISTRATOR);
 }
コード例 #3
0
 function plgFlexicontent_fieldsFcpagenav(&$subject, $params)
 {
     parent::__construct($subject, $params);
     JPlugin::loadLanguage('plg_flexicontent_fields_fcpagenav', JPATH_ADMINISTRATOR);
 }
コード例 #4
0
ファイル: core.php プロジェクト: khetsothea/flexicontent-cck
 function plgFlexicontent_fieldsCore(&$subject, $params)
 {
     parent::__construct($subject, $params);
     JPlugin::loadLanguage('plg_flexicontent_fields_core', JPATH_ADMINISTRATOR);
     JPlugin::loadLanguage('plg_flexicontent_fields_textarea', JPATH_ADMINISTRATOR);
 }
コード例 #5
0
 function plgFlexicontent_fieldsSharedmedia(&$subject, $params)
 {
     parent::__construct($subject, $params);
     JPlugin::loadLanguage('plg_flexicontent_fields_sharedmedia', JPATH_ADMINISTRATOR);
 }
コード例 #6
0
 function plgFlexicontent_fieldsExtendedWeblink(&$subject, $params)
 {
     parent::__construct($subject, $params);
     JPlugin::loadLanguage('plg_flexicontent_fields_extendedweblink', JPATH_ADMINISTRATOR);
 }