當前位置: 首頁>>代碼示例>>PHP>>正文


PHP JCckPluginField::g_onCCK_FieldConstruct方法代碼示例

本文整理匯總了PHP中JCckPluginField::g_onCCK_FieldConstruct方法的典型用法代碼示例。如果您正苦於以下問題:PHP JCckPluginField::g_onCCK_FieldConstruct方法的具體用法?PHP JCckPluginField::g_onCCK_FieldConstruct怎麽用?PHP JCckPluginField::g_onCCK_FieldConstruct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在JCckPluginField的用法示例。


在下文中一共展示了JCckPluginField::g_onCCK_FieldConstruct方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: onCCK_FieldConstruct

 public function onCCK_FieldConstruct($type, &$data = array())
 {
     if (self::$type != $type) {
         return;
     }
     parent::g_onCCK_FieldConstruct($data);
 }
開發者ID:codigoaberto,項目名稱:SEBLOD,代碼行數:7,代碼來源:group_x.php

示例2: onCCK_FieldConstruct

 public function onCCK_FieldConstruct($type, &$data = array())
 {
     if (self::$type != $type) {
         return;
     }
     parent::g_onCCK_FieldConstruct($data);
     $data['defaultvalue'] = JRequest::getVar('defaultvalue', '', '', 'string', JREQUEST_ALLOWRAW);
 }
開發者ID:densem-2013,項目名稱:exikom,代碼行數:8,代碼來源:wysiwyg_editor.php

示例3: onCCK_FieldConstruct

 public function onCCK_FieldConstruct($type, &$data = array())
 {
     if (self::$type != $type) {
         return;
     }
     if (!@$data['json']['options2']['link_label']) {
         $data['json']['options2']['link_label'] = ' ';
     }
     parent::g_onCCK_FieldConstruct($data);
 }
開發者ID:densem-2013,項目名稱:exikom,代碼行數:10,代碼來源:link.php

示例4: onCCK_FieldConstruct

 public function onCCK_FieldConstruct($type, &$data = array())
 {
     if (self::$type != $type) {
         return;
     }
     parent::g_onCCK_FieldConstruct($data);
     $data['divider'] = '';
     $prefix = JFactory::getConfig()->get('dbprefix');
     $table = 'cck_store_join_' . ($data['storage_field2'] != '' ? $data['storage_field2'] : $data['storage_field']);
     JCckDatabase::execute('CREATE TABLE IF NOT EXISTS ' . $prefix . $table . ' ( `id` int(11) NOT NULL, `id2` int(11) NOT NULL, PRIMARY KEY (`id`,`id2`) )' . ' ENGINE=InnoDB DEFAULT CHARSET=utf8;');
 }
開發者ID:hamby,項目名稱:SEBLOD,代碼行數:11,代碼來源:joomla_article.php

示例5: onCCK_FieldConstruct

 public function onCCK_FieldConstruct($type, &$data = array(), $config = array())
 {
     if (self::$type != $type) {
         return;
     }
     $data['storage'] = 'none';
     parent::g_onCCK_FieldConstruct($data);
     if (!isset($config['inherit'])) {
         $data['defaultvalue'] = JRequest::getVar('defaultvalue', '', '', 'string', JREQUEST_ALLOWRAW);
     }
 }
開發者ID:densem-2013,項目名稱:exikom,代碼行數:11,代碼來源:freetext.php

示例6: onCCK_FieldConstruct

 public function onCCK_FieldConstruct($type, &$data = array())
 {
     if (self::$type != $type) {
         return;
     }
     if (isset($data['string']['location']) && is_array($data['string']['location'])) {
         if (!implode('', $data['string']['location'])) {
             $data['json']['options2']['options'] = '';
         }
     }
     parent::g_onCCK_FieldConstruct($data);
 }
開發者ID:pctechnikch,項目名稱:SEBLOD,代碼行數:12,代碼來源:checkbox.php

示例7: onCCK_FieldConstruct

 public function onCCK_FieldConstruct($type, &$data = array())
 {
     if (self::$type != $type) {
         return;
     }
     if ($data['json']['options2']['path'][strlen($data['json']['options2']['path']) - 1] != '/') {
         $data['json']['options2']['path'] .= '/';
     }
     $data['json']['options2']['path'] = trim($data['json']['options2']['path']);
     JCckDevHelper::createFolder(JPATH_SITE . '/' . $data['json']['options2']['path']);
     parent::g_onCCK_FieldConstruct($data);
 }
開發者ID:pctechnikch,項目名稱:SEBLOD,代碼行數:12,代碼來源:upload_image.php

示例8: onCCK_FieldConstruct

 public function onCCK_FieldConstruct($type, &$data = array())
 {
     if (self::$type != $type) {
         return;
     }
     // Add Database Process
     if ($data['bool2'] == 0) {
         $ext = JFactory::getConfig()->get('dbprefix');
         if (isset($data['json']['options2']['table'])) {
             $data['json']['options2']['table'] = str_replace($ext, '#__', $data['json']['options2']['table']);
         }
     }
     parent::g_onCCK_FieldConstruct($data);
 }
開發者ID:hamby,項目名稱:SEBLOD,代碼行數:14,代碼來源:select_dynamic.php

示例9: onCCK_FieldConstruct

 public function onCCK_FieldConstruct($type, &$data = array())
 {
     if (self::$type != $type) {
         return;
     }
     if (isset($data['json']['options2']['task'])) {
         $data['json']['options2']['task_id'] = '';
         $task = $data['json']['options2']['task'];
         if ($task == 'export' || $task == 'process') {
             $data['json']['options2']['task_id'] = $data['json']['options2']['task_id_' . $task];
             unset($data['json']['options2']['task_id_export']);
             unset($data['json']['options2']['task_id_process']);
         }
     }
     parent::g_onCCK_FieldConstruct($data);
 }
開發者ID:densem-2013,項目名稱:exikom,代碼行數:16,代碼來源:button_submit.php

示例10: onCCK_FieldConstruct

 public function onCCK_FieldConstruct($type, &$data = array())
 {
     if (self::$type != $type) {
         return;
     }
     if ($data['json']['options2']['path'][strlen($data['json']['options2']['path']) - 1] != '/') {
         $data['json']['options2']['path'] .= '/';
     }
     $data['json']['options2']['path'] = trim($data['json']['options2']['path']);
     jimport('joomla.filesystem.folder');
     if (!JFolder::exists(JPATH_SITE . '/' . $data['json']['options2']['path'])) {
         JFolder::create(JPATH_SITE . '/' . $data['json']['options2']['path']);
         $buffer = '<!DOCTYPE html><title></title>';
         JFile::write(JPATH_SITE . '/' . $data['json']['options2']['path'] . '/' . 'index.html', $buffer);
     }
     parent::g_onCCK_FieldConstruct($data);
 }
開發者ID:olafzieger,項目名稱:joomla3.x-seblod-test,代碼行數:17,代碼來源:upload_image.php


注:本文中的JCckPluginField::g_onCCK_FieldConstruct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。