当前位置: 首页>>代码示例>>PHP>>正文


PHP VmHTML::validate方法代码示例

本文整理汇总了PHP中VmHTML::validate方法的典型用法代码示例。如果您正苦于以下问题:PHP VmHTML::validate方法的具体用法?PHP VmHTML::validate怎么用?PHP VmHTML::validate使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在VmHTML的用法示例。


在下文中一共展示了VmHTML::validate方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: displayCustomFields

 /**
  * This displays a custom handler.
  *
  * @param string $html atttributes, Just for displaying the fullsized image
  */
 public function displayCustomFields($datas)
 {
     $identify = '';
     // ':'.$this->virtuemart_custom_id;
     if (!class_exists('VmHTML')) {
         require VMPATH_ADMIN . DS . 'helpers' . DS . 'html.php';
     }
     if ($datas->field_type) {
         $this->addHidden('field_type', $datas->field_type);
     }
     $this->addHiddenByType($datas);
     $html = "";
     $model = VmModel::getModel('custom');
     // only input when not set else display
     if ($datas->field_type) {
         $html .= VmHTML::row('value', 'COM_VIRTUEMART_CUSTOM_FIELD_TYPE', $this->fieldTypes[$datas->field_type]);
     } else {
         $html .= VmHTML::row('select', 'COM_VIRTUEMART_CUSTOM_FIELD_TYPE', 'field_type', $this->getOptions($this->fieldTypes), $datas->field_type, VmHTML::validate('R'));
     }
     $html .= VmHTML::row('input', 'COM_VIRTUEMART_TITLE', 'custom_title', $datas->custom_title);
     $html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_SHOW_TITLE', 'show_title', $datas->show_title);
     $html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_PUBLISHED', 'published', $datas->published);
     $html .= VmHTML::row('select', 'COM_VIRTUEMART_CUSTOM_GROUP', 'custom_parent_id', $model->getParentList($datas->virtuemart_custom_id), $datas->custom_parent_id, '');
     $html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_CUSTOM_IS_CART_ATTRIBUTE', 'is_cart_attribute', $datas->is_cart_attribute);
     $html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_CUSTOM_IS_CART_INPUT', 'is_input', $datas->is_input);
     $html .= VmHTML::row('input', 'COM_VIRTUEMART_DESCRIPTION', 'custom_desc', $datas->custom_desc);
     // change input by type
     $html .= VmHTML::row('textarea', 'COM_VIRTUEMART_CUSTOM_DEFAULT', 'custom_value', $datas->custom_value);
     $html .= VmHTML::row('input', 'COM_VIRTUEMART_CUSTOM_TIP', 'custom_tip', $datas->custom_tip);
     $html .= VmHTML::row('input', 'COM_VIRTUEMART_CUSTOM_LAYOUT_POS', 'layout_pos', $datas->layout_pos);
     //$html .= VmHTML::row('booleanlist','COM_VIRTUEMART_CUSTOM_GROUP','custom_parent_id',$this->getCustomsList(),  $datas->custom_parent_id,'');
     $html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_CUSTOM_ADMIN_ONLY', 'admin_only', $datas->admin_only);
     $html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_CUSTOM_IS_LIST', 'is_list', $datas->is_list);
     $html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_CUSTOM_IS_HIDDEN', 'is_hidden', $datas->is_hidden);
     $html .= $this->ordering;
     // $html .= '</table>';  removed
     $html .= VmHTML::inputHidden($this->_hidden);
     return $html;
 }
开发者ID:naka211,项目名称:studiekorrektur,代码行数:44,代码来源:view.html.php

示例2: displayCustomFields

 /**
  * This displays a custom handler.
  *
  * @param string $html atttributes, Just for displaying the fullsized image
  */
 public function displayCustomFields($datas)
 {
     JLoader::register('VmHTML', JPATH_VM_ADMINISTRATOR . '/helpers/html.php');
     if ($datas->field_type) {
         $this->addHidden('field_type', $datas->field_type);
     }
     $this->addHiddenByType($datas);
     $html = "";
     // Note stuio42 : never used
     // JLoader::register('Permissions', JPATH_VM_ADMINISTRATOR.'/helpers/permissions.php');
     // if (!Permissions::getInstance ()->check ('admin')) {
     // $readonly = 'readonly';
     // }
     // else {
     // $readonly = '';
     // }
     // only input when not set else display
     if ($datas->field_type) {
         if ($datas->field_type == 'E') {
             if (jText::_('custom_' . $datas->custom_element) !== 'vmcustom_' . $datas->custom_element) {
                 $plugin = ' (' . jText::_('vmcustom_' . $datas->custom_element) . ')';
             } else {
                 $plugin = ' (' . $datas->custom_element . ')';
             }
         } else {
             $plugin = '';
         }
         $typeName = jText::_($datas->field_types[$datas->field_type]) . $plugin;
         $html .= VmHTML::row('value', 'COM_VIRTUEMART_CUSTOM_FIELD_TYPE', $typeName);
     } else {
         $html .= VmHTML::row('select', 'COM_VIRTUEMART_CUSTOM_FIELD_TYPE', 'field_type', $this->getOptions($datas->field_types), $datas->field_type, VmHTML::validate('R'));
     }
     $html .= VmHTML::row('input', 'COM_VIRTUEMART_TITLE', 'custom_title', $datas->custom_title, VmHTML::validate('S'));
     $html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_SHOW_TITLE', 'show_title', $datas->show_title);
     $html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_PUBLISHED', 'published', $datas->published);
     $html .= VmHTML::row('select', 'COM_VIRTUEMART_CUSTOM_PARENT', 'custom_parent_id', $this->getParentList($datas->virtuemart_custom_id), $datas->custom_parent_id, '');
     $html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_CUSTOM_IS_CART_ATTRIBUTE', 'is_cart_attribute', $datas->is_cart_attribute);
     $html .= VmHTML::row('input', 'COM_VIRTUEMART_DESCRIPTION', 'custom_field_desc', $datas->custom_field_desc);
     // change input by type
     $html .= VmHTML::row('input', 'COM_VIRTUEMART_DEFAULT', 'custom_value', $datas->custom_value);
     $html .= VmHTML::row('input', 'COM_VIRTUEMART_CUSTOM_TIP', 'custom_tip', $datas->custom_tip);
     $html .= VmHTML::row('input', 'COM_VIRTUEMART_CUSTOM_LAYOUT_POS', 'layout_pos', $datas->layout_pos);
     //$html .= VmHTML::row('booleanlist','COM_VIRTUEMART_CUSTOM_PARENT','custom_parent_id',$this->getCustomsList(),  $datas->custom_parent_id,'');
     $html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_CUSTOM_ADMIN_ONLY', 'admin_only', $datas->admin_only);
     if ($datas->field_type !== 'E') {
         $html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_CUSTOM_IS_LIST', 'is_list', $datas->is_list);
     }
     $html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_CUSTOM_IS_HIDDEN', 'is_hidden', $datas->is_hidden);
     $html .= VmHTML::inputHidden($this->_hidden);
     return $html;
 }
开发者ID:denis1001,项目名称:Virtuemart-2-Joomla-3-Bootstrap,代码行数:56,代码来源:customfields.php

示例3: displayCustomFields

 /**
  * This displays a custom handler.
  *
  * @param string $html atttributes, Just for displaying the fullsized image
  */
 public function displayCustomFields($datas)
 {
     $identify = '';
     // ':'.$this->virtuemart_custom_id;
     if (!class_exists('VmHTML')) {
         require JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'html.php';
     }
     if ($datas->field_type) {
         $this->addHidden('field_type', $datas->field_type);
     }
     $this->addHiddenByType($datas);
     //$html = '<div id="custom_title">'.$datas->custom_title.'</div>';
     $html = "";
     //$html = ' <table class="admintable"> ';
     if (!class_exists('Permissions')) {
         require JPATH_VM_ADMINISTRATOR . DS . 'helpers' . DS . 'permissions.php';
     }
     if (!Permissions::getInstance()->check('admin')) {
         $readonly = 'readonly';
     } else {
         $readonly = '';
     }
     // only input when not set else display
     if ($datas->field_type) {
         $html .= VmHTML::row('value', 'COM_VIRTUEMART_CUSTOM_FIELD_TYPE', $datas->field_types[$datas->field_type]);
     } else {
         $html .= VmHTML::row('select', 'COM_VIRTUEMART_CUSTOM_FIELD_TYPE', 'field_type', $this->getOptions($datas->field_types), $datas->field_type, VmHTML::validate('R'));
     }
     $html .= VmHTML::row('input', 'COM_VIRTUEMART_TITLE', 'custom_title', $datas->custom_title, VmHTML::validate('S'));
     $html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_SHOW_TITLE', 'show_title', $datas->show_title);
     $html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_PUBLISHED', 'published', $datas->published);
     $html .= VmHTML::row('select', 'COM_VIRTUEMART_CUSTOM_PARENT', 'custom_parent_id', $this->getParentList($datas->virtuemart_custom_id), $datas->custom_parent_id, '');
     $html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_CUSTOM_IS_CART_ATTRIBUTE', 'is_cart_attribute', $datas->is_cart_attribute);
     $html .= VmHTML::row('input', 'COM_VIRTUEMART_DESCRIPTION', 'custom_field_desc', $datas->custom_field_desc);
     // change input by type
     $html .= VmHTML::row('input', 'COM_VIRTUEMART_DEFAULT', 'custom_value', $datas->custom_value);
     $html .= VmHTML::row('input', 'COM_VIRTUEMART_CUSTOM_TIP', 'custom_tip', $datas->custom_tip);
     $html .= VmHTML::row('input', 'COM_VIRTUEMART_CUSTOM_LAYOUT_POS', 'layout_pos', $datas->layout_pos);
     //$html .= VmHTML::row('booleanlist','COM_VIRTUEMART_CUSTOM_PARENT','custom_parent_id',$this->getCustomsList(),  $datas->custom_parent_id,'');
     $html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_CUSTOM_ADMIN_ONLY', 'admin_only', $datas->admin_only);
     $html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_CUSTOM_IS_LIST', 'is_list', $datas->is_list);
     $html .= VmHTML::row('booleanlist', 'COM_VIRTUEMART_CUSTOM_IS_HIDDEN', 'is_hidden', $datas->is_hidden);
     // $html .= '</table>';  removed
     $html .= VmHTML::inputHidden($this->_hidden);
     return $html;
 }
开发者ID:arkane0906,项目名称:lasercut-bootstrap,代码行数:51,代码来源:customfields.php


注:本文中的VmHTML::validate方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。