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


PHP AddressFormat::getLiableClass方法代码示例

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


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

示例1: _displayValidFields

    private function _displayValidFields()
    {
        $html = '<ul>';
        $appendContainer = '';
        $objectList = AddressFormat::getLiableClass('Address');
        $objectList['Address'] = NULL;
        // Get the available properties for each class
        foreach ($objectList as $className => &$object) {
            $fields = array();
            $html .= '<li>
				<a href="javascript:void(0);" onClick="displayAvailableFields(\'' . $className . '\')">' . $className . '</a>';
            foreach (AddressFormat::getValidateFields($className) as $name) {
                $fields[] = '<a style="color:#4B8;" href="javascript:void(0);" class="addPattern" id="' . $className . ':' . $name . '">
					' . $name . '</a>';
            }
            $html .= '
				<div class="availableFieldsList" id="availableListFieldsFor_' . $className . '" style="width:300px;">
				' . implode(', ', $fields) . '</div></li>';
            unset($object);
        }
        return $html .= '</ul>';
    }
开发者ID:greench,项目名称:prestashop,代码行数:22,代码来源:AdminCountries.php

示例2: displayValidFields

    protected function displayValidFields()
    {
        /* The following translations are needed later - don't remove the comments!
        		$this->l('Customer');
        		$this->l('Warehouse');
        		$this->l('Country');
        		$this->l('State');
        		$this->l('Address');
        		*/
        $html_tabnav = '<ul class="nav nav-tabs" id="custom-address-fields">';
        $html_tabcontent = '<div class="tab-content" >';
        $object_list = AddressFormat::getLiableClass('Address');
        $object_list['Address'] = null;
        // Get the available properties for each class
        $i = 0;
        $class_tab_active = 'active';
        foreach ($object_list as $class_name => &$object) {
            if ($i != 0) {
                $class_tab_active = '';
            }
            $fields = array();
            $html_tabnav .= '<li class="' . $class_tab_active . '"">
				<a href="#availableListFieldsFor_' . $class_name . '"><i class="icon-caret-down"></i>&nbsp;' . Translate::getAdminTranslation($class_name, 'AdminCountries') . '</a></li>';
            foreach (AddressFormat::getValidateFields($class_name) as $name) {
                $fields[] = '<a href="javascript:void(0);" class="addPattern btn btn-default btn-xs" id="' . ($class_name == 'Address' ? $name : $class_name . ':' . $name) . '">
					<i class="icon-plus-sign"></i>&nbsp;' . ObjectModel::displayFieldName($name, $class_name) . '</a>';
            }
            $html_tabcontent .= '
				<div class="tab-pane availableFieldsList panel ' . $class_tab_active . '" id="availableListFieldsFor_' . $class_name . '">
				' . implode(' ', $fields) . '</div>';
            unset($object);
            $i++;
        }
        $html_tabnav .= '</ul>';
        $html_tabcontent .= '</div>';
        return $html = $html_tabnav . $html_tabcontent;
    }
开发者ID:AmineBENCHEIKHBRAHIM,项目名称:LnsTech-Prestashop-WebSite,代码行数:37,代码来源:AdminCountriesController.php

示例3: displayValidFields

    protected function displayValidFields()
    {
        $html_tabnav = '<ul class="nav nav-tabs" id="custom-address-fields">';
        $html_tabcontent = '<div class="tab-content" >';
        $object_list = AddressFormat::getLiableClass('Address');
        $object_list['Address'] = null;
        // Get the available properties for each class
        $i = 0;
        $class_tab_active = 'active';
        foreach ($object_list as $class_name => &$object) {
            if ($i != 0) {
                $class_tab_active = '';
            }
            $fields = array();
            $html_tabnav .= '<li class="' . $class_tab_active . '"">
				<a href="#availableListFieldsFor_' . $class_name . '"><i class="icon-caret-down"></i>&nbsp;' . $class_name . '</a></li>';
            foreach (AddressFormat::getValidateFields($class_name) as $name) {
                $fields[] = '<a href="javascript:void(0);" class="addPattern btn btn-default btn-xs" id="' . ($class_name == 'Address' ? $name : $class_name . ':' . $name) . '">
					<i class="icon-plus-sign"></i>&nbsp;' . $name . '</a>';
            }
            $html_tabcontent .= '
				<div class="tab-pane availableFieldsList panel ' . $class_tab_active . '" id="availableListFieldsFor_' . $class_name . '">
				' . implode(' ', $fields) . '</div>';
            unset($object);
            $i++;
        }
        $html_tabnav .= '</ul>';
        $html_tabcontent .= '</div>';
        return $html = $html_tabnav . $html_tabcontent;
    }
开发者ID:dev-lav,项目名称:htdocs,代码行数:30,代码来源:AdminCountriesController.php


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