当前位置: 首页>>代码示例>>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;未经允许,请勿转载。