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


PHP Tag::tagHtmlClose方法代碼示例

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


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

示例1: testIdeGenerator

 public function testIdeGenerator()
 {
     Widget::define('hello', function (array $parameters, &$null = null, $true = true, $false = false, $const = PHP_EOL, \stdClass $class = null, callable $callable = null) {
         $innerHtml = isset($parameters['innerHtml']) ? $parameters['innerHtml'] : '';
         unset($parameters['innerHtml']);
         return Tag::tagHtml('hello', $parameters) . $innerHtml . Tag::tagHtmlClose('hello');
     });
     $expected = '    public static function hello(array $parameters, &$null = null, ' . '$true = true, $false = false, $const = PHP_EOL, stdClass $class = null, callable $callable = null) {}';
     $this->assertEquals($expected, Widget::ideHelperGenerator());
 }
開發者ID:phwoolcon,項目名稱:phwoolcon,代碼行數:10,代碼來源:WidgetTest.php

示例2: render

 public function render($attributes = NULL, $icon = NULL)
 {
     $icon = $icon ?: $this->_icon;
     $render = Tag::tagHtml('i', ['class' => 'pull-right']);
     $render .= ' ';
     $render .= Tag::tagHtmlClose('i');
     $render .= Tag::tagHtml('button', $this->prepareAttributes($attributes), FALSE, TRUE);
     $render .= $this->_name;
     $render .= Tag::tagHtml('i', ['class' => $icon]);
     $render .= Tag::tagHtmlClose('i');
     $render .= Tag::tagHtmlClose('button');
     return $render;
 }
開發者ID:denners777,項目名稱:api-phalcon,代碼行數:13,代碼來源:Button.php

示例3: tagHtmlClose

 public static function tagHtmlClose($tagName, $useEol = false)
 {
     return parent::tagHtmlClose($tagName, $useEol);
 }
開發者ID:mattvb91,項目名稱:cphalcon,代碼行數:4,代碼來源:Tag.php

示例4: testTagHtmlCloseEol

 /**
  * Tests the tagHtmlClose with EOL
  *
  * @author Nikos Dimopoulos <nikos@phalconphp.com>
  * @since  2013-04-22
  */
 public function testTagHtmlCloseEol()
 {
     $name = 'canvas';
     $expected = '</canvas>' . PHP_EOL;
     $actual = \Phalcon\Tag::tagHtmlClose($name, true);
     $this->assertEquals($expected, $actual, sprintf($this->message, 'tagHtml with options array'));
 }
開發者ID:lisong,項目名稱:cphalcon,代碼行數:13,代碼來源:UnitTest.php

示例5: array

<?php

// Generate
// <canvas id="canvas1" width="300" class="cnvclass">
// This is my canvas
// </canvas>
echo \Phalcon\Tag::tagHtml("canvas", array("id" => "canvas1", "width" => "300", "class" => "cnvclass", false, true, true));
echo "This is my canvas";
echo \Phalcon\Tag::tagHtmlClose("canvas");
開發者ID:aodkrisda,項目名稱:phalcon-code,代碼行數:9,代碼來源:tags-523.php

示例6: label

 /**
  * Display attribute name
  * @param string $attribute
  * @return string
  */
 public function label($attribute)
 {
     return Tag::tagHtml('label', ['class' => 'pull-left control-label']) . $this->model->getAttributeLabel($attribute) . Tag::tagHtmlClose('label', true);
 }
開發者ID:wataridori,項目名稱:bphalcon,代碼行數:9,代碼來源:BForm.php

示例7: builtInLabel

 /**
  * Make a label element
  *
  * Required parameters:
  * $innerHtml
  * Optional parameters:
  * 'for', 'class', or other html attributes
  *
  * @param array  $parameters
  * @param string $innerHtml
  * @return string
  */
 protected static function builtInLabel(array $parameters, $innerHtml)
 {
     return Tag::tagHtml('label', $parameters, false, true) . $innerHtml . Tag::tagHtmlClose('label');
 }
開發者ID:phwoolcon,項目名稱:phwoolcon,代碼行數:16,代碼來源:Widget.php


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