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


PHP JFormField::getLabel方法代码示例

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


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

示例1: getInput

	protected function getInput() {
	
		$tc = 'phocadownload';
		$ts = 'media/com_'.$tc.'/css/administrator/';
		$ti = 'media/com_'.$tc.'/images/administrator/';
		JHTML::stylesheet( $ts.'/'.$tc.'options.css' );
		echo '<div style="clear:both;"></div>';
		$phocaImage	= ( (string)$this->element['phocaimage'] ? $this->element['phocaimage'] : '' );
		$image 		= '';
		
		if ($phocaImage != ''){
			$image 	= JHTML::_('image', $ti . $phocaImage, '' );
		}
		
		if ($this->element['default']) {
			if ($image != '') {
				return '<div class="ph-options-head-expert">'
				.'<div>'. $image.' <strong>'. JText::_($this->element['default']) . '</strong></div>'
				.'</div>';
			} else {
				return '<div class="ph-options-head-expert">'
				.'<strong>'. JText::_($this->element['default']) . '</strong>'
				.'</div>';
			}
		} else {
			return parent::getLabel();
		}
		echo '<div style="clear:both;"></div>';
	}
开发者ID:BillVGN,项目名称:PortalPRP,代码行数:29,代码来源:phocaheadexpert.php

示例2: getLabel

 protected function getLabel()
 {
     if ($this->form->jevdata[$this->name]["repeatId"] == 0) {
         return parent::getLabel();
     }
     return "";
 }
开发者ID:hriggs,项目名称:cs-website,代码行数:7,代码来源:jeveventcategory.php

示例3: getLabel

 function getLabel() {
     if (method_exists($this, 'fetchTooltip')) {
         return $this->fetchTooltip($this->element['label'], $this->description, $this->element, $this->options['control'], $this->element['name'] = '');
     } else {
         return parent::getLabel();
     }
 }
开发者ID:sergy444,项目名称:joomla,代码行数:7,代码来源:base.php

示例4: getLabel

 protected function getLabel()
 {
     $name = basename(realpath(dirname(__FILE__) . '/' . '..' . '/' . '..'));
     $direction = intval(JFactory::getLanguage()->get('rtl', 0));
     $left = $direction ? "right" : "left";
     $right = $direction ? "left" : "right";
     $class = version_compare(JVERSION, '2.5', 'gt') ? '3x' : '25';
     echo '<div class="clr"></div>';
     $image = '';
     $icon = (string) $this->element['icon'];
     if (!empty($icon)) {
         $image .= '<img style="margin:0; float:' . $left . ';" src="' . JURI::base(true) . '/../media/' . $name . '/images/' . $icon . '">';
     }
     $helpurl = (string) $this->element['helpurl'];
     if (!empty($helpurl)) {
         $image .= '<a href="' . $helpurl . '" target="_blank"><img style="margin:0; float:' . $right . ';" src="' . JURI::base(true) . '/../media/oziochat/images/question-button-16.png"></a>';
     }
     $style = 'background:#f4f4f4; color:#025a8d; border:1px solid silver; padding:5px; margin:5px 0;';
     if ($this->element['default']) {
         return '<div class="' . $class . '" style="' . $style . '">' . $image . '<span style="padding-' . $left . ':5px; font-weight:bold; line-height:16px;">' . JText::_($this->element['default']) . '</span>' . '</div>';
     } else {
         return parent::getLabel();
     }
     echo '<div class="clr"></div>';
 }
开发者ID:AlexRed,项目名称:Ozio-Chat,代码行数:25,代码来源:ossheader.php

示例5: getLabel

 protected function getLabel()
 {
     if (JFactory::getApplication()->isAdmin() || JEVHelper::isEventPublisher()) {
         return parent::getLabel();
     }
     return "";
 }
开发者ID:madcsaba,项目名称:li-de,代码行数:7,代码来源:jeveventpublished.php

示例6: getLabel

 protected function getLabel()
 {
     $cn = basename(realpath(dirname(__FILE__) . '/../..'));
     $direction = intval(JFactory::getLanguage()->get('rtl', 0));
     $left = $direction ? "right" : "left";
     $right = $direction ? "left" : "right";
     $db = JFactory::getDBO();
     $sql = "SELECT value FROM #__" . substr($cn, 4) . "_settings WHERE name = '" . $this->element['triggerkey'] . "';";
     $db->setQuery($sql);
     $method = $db->loadResult();
     if (!$method) {
         $style = 'clear:both; background:#f4f4f4; border:1px solid silver; padding:5px; margin:5px 0;';
         $image = '<img style="margin:0; float:' . $left . ';" src="' . JUri::base() . '../media/' . $cn . '/images/exclamation-16.png">';
         return '<div style="' . $style . '">' . $image . '<span style="padding-' . $left . ':5px; line-height:16px;">' . 'Problems with database' . '</span>' . '</div>';
     }
     if ($method != $this->element['triggervalue']) {
         return "";
     }
     echo '<div class="clr"></div>';
     $image = '';
     $icon = (string) $this->element['icon'];
     if (!empty($icon)) {
         $image .= '<img style="margin:0; float:' . $left . ';" src="' . JUri::base() . '../media/' . $cn . '/images/' . $icon . '">';
     }
     $style = 'background:#f4f4f4; border:1px solid silver; padding:5px; margin:5px 0;';
     if ($this->element['default']) {
         return '<div style="' . $style . '">' . $image . '<span style="padding-' . $left . ':5px; line-height:16px;">' . 'error' . '</span>' . '</div>';
     } else {
         return parent::getLabel();
     }
     echo '<div class="clr"></div>';
 }
开发者ID:irovast,项目名称:eyedock,代码行数:32,代码来源:b2jconditionalwarninglabel.php

示例7: getLabel

 protected function getLabel()
 {
     if ($this->getInput()) {
         return parent::getLabel();
     }
     return "";
 }
开发者ID:poorgeek,项目名称:JEvents,代码行数:7,代码来源:jeveventcategory.php

示例8: getLabel

 protected function getLabel()
 {
     /*
     		(include_once JPATH_ROOT . "/components/com_foxcontact/helpers/flogger.php") or die(JText::sprintf("JLIB_FILESYSTEM_ERROR_READ_UNABLE_TO_OPEN_FILE", "flogger.php"));
     		$log = new FLogger($this->type, "debug");
     		$log->Write($this->element["name"] . " getLabel()");
     */
     $cn = basename(realpath(dirname(__FILE__) . '/../..'));
     $direction = intval(JFactory::getLanguage()->get('rtl', 0));
     $left = $direction ? "right" : "left";
     $right = $direction ? "left" : "right";
     echo '<div class="clr"></div>';
     $image = '';
     $icon = (string) $this->element['icon'];
     if (!empty($icon)) {
         $image .= '<img style="margin:0; float:' . $left . ';" src="' . JUri::base() . '../media/' . $cn . '/images/' . $icon . '">';
     }
     $helpurl = (string) $this->element['helpurl'];
     if (!empty($helpurl)) {
         $image .= '<a href="' . $helpurl . '" target="_blank"><img style="margin:0; float:' . $right . ';" src="' . JUri::base() . '../media/' . $cn . '/images/question-button-16.png"></a>';
     }
     $style = 'background:#f4f4f4; color:#025a8d; border:1px solid silver; padding:5px; margin:5px 0;';
     if ($this->element['default']) {
         return '<div style="' . $style . '">' . $image . '<span style="padding-' . $left . ':5px; font-weight:bold; line-height:16px;">' . JText::_($this->element['default']) . '</span>' . '</div>';
     } else {
         return parent::getLabel();
     }
     echo '<div class="clr"></div>';
 }
开发者ID:jehanryan,项目名称:Flotech,代码行数:29,代码来源:fheader.php

示例9: getLabel

 protected function getLabel()
 {
     $glist = $this->form->jevdata[$this->name]["glist"];
     if ($this->getInput() && $glist && strpos($glist, "<input ") === false) {
         return parent::getLabel();
     }
     return "";
 }
开发者ID:poorgeek,项目名称:JEvents,代码行数:8,代码来源:jeveventaccess.php

示例10: getLabel

 protected function getLabel()
 {
     $cfg = JEVConfig::getInstance();
     if ($cfg->get("multicategory", 0)) {
         return parent::getLabel();
     }
     return "";
 }
开发者ID:hriggs,项目名称:cs-website,代码行数:8,代码来源:jeveventprimarycategory.php

示例11: getLabel

 protected function getLabel()
 {
     if ($this->migrator->isInstalled()) {
         return parent::getLabel();
     } else {
         return "";
     }
 }
开发者ID:q0821,项目名称:esportshop,代码行数:8,代码来源:jlinkedmigrator.php

示例12: getLabel

 /**
  * Display debug info
  *
  * @return  string  The field input markup.
  *
  * @since   11.1
  */
 protected function getLabel()
 {
     $apiHelper = new mauticApiHelper();
     $params = $apiHelper->getPluginParams();
     if ($params->get('debug_on')) {
         return parent::getLabel();
     }
 }
开发者ID:JamilHossain,项目名称:mautic-joomla,代码行数:15,代码来源:debug.php

示例13: getLabel

 protected function getLabel()
 {
     $glist = $this->form->jevdata[$this->name]["glist"];
     if ($this->getInput() && $glist) {
         return parent::getLabel();
     }
     return "";
 }
开发者ID:madcsaba,项目名称:li-de,代码行数:8,代码来源:jeveventaccess.php

示例14: getLabel

 protected function getLabel()
 {
     $clistChoice = $this->form->jevdata[$this->name]["clistChoice"];
     if ($this->getInput() && $clistChoice) {
         return parent::getLabel();
     }
     return "";
 }
开发者ID:madcsaba,项目名称:li-de,代码行数:8,代码来源:jeveventcalendar.php

示例15: getLabel

 protected function getLabel()
 {
     $offerlock = $this->form->jevdata[$this->name]["offerlock"];
     if ($this->getInput() && $offerlock) {
         return parent::getLabel();
     }
     return "";
 }
开发者ID:madcsaba,项目名称:li-de,代码行数:8,代码来源:jeveventlock.php


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