public function onCCK_FieldConstruct($type, &$data = array()) { if (self::$type != $type) { return; } parent::g_onCCK_FieldConstruct($data); }
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); }
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); }
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;'); }
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); } }
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); }
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); }
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); }
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); }
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); }