當前位置: 首頁>>代碼示例>>PHP>>正文


PHP HtmlHelper::__construct方法代碼示例

本文整理匯總了PHP中HtmlHelper::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP HtmlHelper::__construct方法的具體用法?PHP HtmlHelper::__construct怎麽用?PHP HtmlHelper::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在HtmlHelper的用法示例。


在下文中一共展示了HtmlHelper::__construct方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 public function __construct(View $View, $settings = [])
 {
     if (isset($settings['prefix'])) {
         $this->prefix = $settings['prefix'];
         unset($settings['prefix']);
     }
     parent::__construct($View, $settings);
 }
開發者ID:gezeresolutionsweb,項目名稱:cakeganache,代碼行數:8,代碼來源:GanacheHtmlHelper.php

示例2: __construct

 /**
  * Constructor
  *
  * @param View $View The View this helper is being attached to.
  * @param array $settings Configuration settings for the helper.
  */
 public function __construct(View $View, $settings = array())
 {
     parent::__construct($View, $settings);
     if (isset($this->_View->viewVars['dtColumns'])) {
         foreach ($this->_View->viewVars['dtColumns'] as $config => $columns) {
             $this->_parseSettings($config, $columns);
         }
     }
 }
開發者ID:bokac1984,項目名稱:genije,代碼行數:15,代碼來源:DataTableHelper.php

示例3: __construct

 public function __construct(View $View, $settings = array())
 {
     parent::__construct($View, $settings);
     if (!empty($settings['configFile'])) {
         $this->loadConfig($settings['configFile']);
     } else {
         $this->loadConfig('TwitterBootstrap.html5_tags');
     }
 }
開發者ID:sanrentan,項目名稱:sanrentan,代碼行數:9,代碼來源:BootstrapHtmlHelper.php

示例4:

 function __construct()
 {
     if (!class_exists('PhpThumbFactory')) {
         App::import('Vendor', 'phpthumb' . DS . 'ThumbLib.inc');
     }
     $this->path = PATH_ROOT . _JR_WWW_IMAGES;
     $this->path_tn = PATH_ROOT . _JR_WWW_IMAGES . 'jreviews' . _DS . 'tn' . _DS;
     $this->www = WWW_ROOT . _JR_WWW_IMAGES;
     $this->www_tn = $this->www . 'jreviews' . _DS . 'tn' . _DS;
     parent::__construct();
     // Make parent class vars available here, like cmsVersion
 }
開發者ID:atikahmed,項目名稱:joomla-probid,代碼行數:12,代碼來源:thumbnail.php

示例5: __construct

 /**
  * Constructor
  *
  * @param View $View The View this helper is being attached to.
  * @param array $settings Configuration settings for the helper.
  */
 public function __construct(View $View, $settings = array())
 {
     parent::__construct($View, $settings);
     $this->settings = Hash::merge($this->settings, $settings);
     if (isset($this->_View->viewVars['dtColumns'])) {
         $dtColumns = $this->_View->viewVars['dtColumns'];
         foreach ($dtColumns as $model => $columns) {
             $this->_paginatedModels[] = $model;
             $this->_parseSettings($model, $columns);
         }
     }
 }
開發者ID:lucasff,項目名稱:cakephp-datatable,代碼行數:18,代碼來源:DataTableHelper.php

示例6: __construct

    /**
     * Constructor
     */
    public function __construct(View $View, $settings = array())
    {
        $themeConfig = CroogoTheme::config($View->theme);
        $themeSettings = $themeConfig['settings'];
        $settings = Hash::merge($themeSettings, $settings);
        parent::__construct($View, $settings);
        $themeCss = $themeSettings['css'];
        $boxIconClass = trim($settings['iconDefaults']['classDefault'] . ' ' . $settings['iconDefaults']['classPrefix'] . 'list');
        $this->_tags['beginbox'] = "<div class='{$themeCss['row']}'>\n\t\t\t\t<div class='{$themeCss['columnFull']}'>\n\t\t\t\t\t<div class='box'>\n\t\t\t\t\t\t<div class='box-title'>\n\t\t\t\t\t\t\t<i class='{$boxIconClass}'></i>\n\t\t\t\t\t\t\t%s\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class='box-content %s'>";
        $this->_tags['endbox'] = '</div>
					</div>
				</div>
			</div>';
        $this->_tags['icon'] = '<i class="%s"%s></i>';
    }
開發者ID:saydulk,項目名稱:croogo,代碼行數:18,代碼來源:CroogoHtmlHelper.php

示例7: __construct

    public function __construct(View $View, $settings = array())
    {
        parent::__construct($View, $settings);
        $this->_tags['beginbox'] = '<div class="row-fluid">
				<div class="span12">
					<div class="box">
						<div class="box-title">
							<i class="icon-list"></i>
							%s
						</div>
						<div class="box-content %s">';
        $this->_tags['endbox'] = '</div>
					</div>
				</div>
			</div>';
        $this->_tags['icon'] = '<i class="%s"%s></i> ';
    }
開發者ID:Demired,項目名稱:CakeWX,代碼行數:17,代碼來源:CroogoHtmlHelper.php

示例8: __construct

    /**
     * Constructor
     */
    public function __construct(View $View, $settings = array())
    {
        if (isset($View->viewVars['themeSettings'])) {
            $themeSettings = $View->viewVars['themeSettings'];
            $settings = Hash::merge(array('iconDefaults' => $themeSettings['iconDefaults'], 'icons' => $themeSettings['icons']), $settings);
        } else {
            $croogoTheme = new CroogoTheme();
            $themeData = $croogoTheme->getData();
            $themeSettings = $themeData['settings'];
            $settings = Hash::merge($themeSettings, $settings);
        }
        parent::__construct($View, $settings);
        $themeCss = $themeSettings['css'];
        $boxIconClass = trim($settings['iconDefaults']['classDefault'] . ' ' . $settings['iconDefaults']['classPrefix'] . 'list');
        $this->_tags['beginbox'] = "<div class='{$themeCss['row']}'>\n\t\t\t\t<div class='{$themeCss['columnFull']}'>\n\t\t\t\t\t<div class='box'>\n\t\t\t\t\t\t<div class='box-title'>\n\t\t\t\t\t\t\t<i class='{$boxIconClass}'></i>\n\t\t\t\t\t\t\t%s\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div class='box-content %s'>";
        $this->_tags['endbox'] = '</div>
					</div>
				</div>
			</div>';
        $this->_tags['icon'] = '<i class="%s"%s></i>';
    }
開發者ID:ahmadhasankhan,項目名稱:croogo,代碼行數:24,代碼來源:CroogoHtmlHelper.php

示例9: __construct

 /**
  * Sets up various vars/classes required
  *
  * @return null
  * @access public
  */
 public function __construct($settings = array())
 {
     $sessionKey = 'Auth';
     if (is_array($settings) && isset($settings[0])) {
         $sessionKey = $settings[0];
     } elseif (is_string($settings)) {
         $sessionKey = $settings;
     }
     $this->sessionKey = $sessionKey;
     $this->userModel = Configure::read('Permissible.UserModelAlias');
     $user = ClassRegistry::init(Configure::read('Permissible.UserModel'));
     $this->userModelPrimary = $user->primaryKey;
     $name = Inflector::camelize(strtolower(Configure::read('Acl.classname')));
     if (!class_exists($name)) {
         if (App::import('Component', $name)) {
             list($plugin, $name) = pluginSplit($name);
             $name .= 'Component';
         } else {
             trigger_error(sprintf(__('Could not find %s.'), $name), E_USER_WARNING);
         }
     }
     $this->_Instance =& new $name();
     parent::__construct($settings);
 }
開發者ID:parker00811,項目名稱:elections,代碼行數:30,代碼來源:PHtmlHelper.php

示例10: __construct

 /**
  * __construct
  * @param View $View
  * @param array $settings
  */
 public function __construct(View $View, $settings = array())
 {
     parent::__construct($View, $settings);
     $this->Image = new ImageHelper($View, $settings);
 }
開發者ID:shama,項目名稱:oven,代碼行數:10,代碼來源:OvenHtmlHelper.php

示例11: array

 function __construct(View $View, $settings = array())
 {
     parent::__construct($View, $settings);
     $this->setVariables();
 }
開發者ID:viniciusferreira,項目名稱:agenda-1,代碼行數:5,代碼來源:CakeStrapHtmlHelper.php

示例12: __construct

 public function __construct(View $View, $settings = array())
 {
     parent::__construct($View, $settings);
     $bootstrapTags = array('botstrap_checkboxmultiple_inline_start' => '', 'botstrap_checkboxmultiple_inlines_end' => '', 'bootstrap_checkboxmultiple_inline' => '<label class="%s" for="%s"><input type="checkbox" name="%s[]" %s />%s</label>', 'bootstrap_checkboxmultiple_block' => '<div %s><label class="%s" for="%s"><input type="checkbox" name="%s[]" %s />%s</label></div>');
     $this->_tags = array_merge($this->_tags, $bootstrapTags);
 }
開發者ID:alescx,項目名稱:base,代碼行數:6,代碼來源:BootStrapHtmlHelper.php

示例13: __construct

 /**
  * contruct
  * 	- allow defaults to be overridden
  * @param $settings array
  */
 public function __construct(View $View, $settings = array())
 {
     parent::__construct($View, $settings);
 }
開發者ID:novrian,項目名稱:BakingPlate,代碼行數:9,代碼來源:HtmlPlusHelper.php

示例14: __construct

 public function __construct(\View $View, $settings = array())
 {
     parent::__construct($View, $settings);
     $this->aclComponent = new AclComponent(new ComponentCollection());
 }
開發者ID:pranaya,項目名稱:cakephp-zone-acl,代碼行數:5,代碼來源:ZoneAclHtmlHelper.php

示例15: __construct

 /**
  * construct method
  *
  * @param array $settings array()
  * @return void
  * @access private
  */
 public function __construct($View, $settings = array())
 {
     $this->settings = array_merge($this->settings, $settings);
     parent::__construct($View, $settings);
 }
開發者ID:razzman,項目名稱:mi,代碼行數:12,代碼來源:MiHtmlHelper.php


注:本文中的HtmlHelper::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。