本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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;');
}
示例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);
}
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}