-
WIBUHAX0R1337
-
/
home
/
cideo
/
library
/
Zend
/
View
/
Helper
/
[ Home ]
Create Folder
Create File
Nama File / Folder
Size
Action
Partial
--
NONE
Placeholder
--
NONE
Abstract.php
1.692KB
Edit File
Delete File
Rename
Fieldset.php
2.398KB
Edit File
Delete File
Rename
FormButton.php
3.158KB
Edit File
Delete File
Rename
FormElement.php
5.577KB
Edit File
Delete File
Rename
FormErrors.php
3.944KB
Edit File
Delete File
Rename
FormFile.php
2.411KB
Edit File
Delete File
Rename
FormImage.php
3.095KB
Edit File
Delete File
Rename
FormLabel.php
2.161KB
Edit File
Delete File
Rename
FormMultiCheckbox.php
2.294KB
Edit File
Delete File
Rename
FormNote.php
1.827KB
Edit File
Delete File
Rename
FormPassword.php
2.893KB
Edit File
Delete File
Rename
FormReset.php
2.61KB
Edit File
Delete File
Rename
FormSelect.php
5.844KB
Edit File
Delete File
Rename
FormTextarea.php
2.953KB
Edit File
Delete File
Rename
HeadScript.php
14.921KB
Edit File
Delete File
Rename
HeadStyle.php
11.895KB
Edit File
Delete File
Rename
HeadTitle.php
5.229KB
Edit File
Delete File
Rename
HtmlElement.php
3.931KB
Edit File
Delete File
Rename
HtmlFlash.php
1.946KB
Edit File
Delete File
Rename
HtmlObject.php
2.635KB
Edit File
Delete File
Rename
HtmlQuicktime.php
2.422KB
Edit File
Delete File
Rename
InlineScript.php
2.154KB
Edit File
Delete File
Rename
Interface.php
1.379KB
Edit File
Delete File
Rename
PaginationControl.php
4.39KB
Edit File
Delete File
Rename
Partial.php
4.752KB
Edit File
Delete File
Rename
PartialLoop.php
3.191KB
Edit File
Delete File
Rename
Placeholder.php
2.529KB
Edit File
Delete File
Rename
RenderToPlaceholder.php
1.45KB
Edit File
Delete File
Rename
<?php /** * Zend Framework * * LICENSE * * This source file is subject to the new BSD license that is bundled * with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://framework.zend.com/license/new-bsd * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@zend.com so we can send you a copy immediately. * * @category Zend * @package Zend_View * @subpackage Helper * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License * @version $Id: HtmlElement.php 12477 2008-11-09 01:55:35Z yoshida@zend.co.jp $ */ /** * @see Zend_View_Helper_Abstract */ require_once 'Zend/View/Helper/Abstract.php'; /** * @category Zend * @package Zend_View * @subpackage Helper * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ abstract class Zend_View_Helper_HtmlElement extends Zend_View_Helper_Abstract { /** * EOL character */ const EOL = "\n"; /** * The tag closing bracket * * @var string */ protected $_closingBracket = null; /** * Get the tag closing bracket * * @return string */ public function getClosingBracket() { if (!$this->_closingBracket) { if ($this->_isXhtml()) { $this->_closingBracket = ' />'; } else { $this->_closingBracket = '>'; } } return $this->_closingBracket; } /** * Is doctype XHTML? * * @return boolean */ protected function _isXhtml() { $doctype = $this->view->doctype(); return $doctype->isXhtml(); } /** * Converts an associative array to a string of tag attributes. * * @access public * * @param array $attribs From this array, each key-value pair is * converted to an attribute name and value. * * @return string The XHTML for the attributes. */ protected function _htmlAttribs($attribs) { $xhtml = ''; foreach ((array) $attribs as $key => $val) { $key = $this->view->escape($key); if (('on' == substr($key, 0, 2)) || ('constraints' == $key)) { // Don't escape event attributes; _do_ substitute double quotes with singles if (!is_scalar($val)) { // non-scalar data should be cast to JSON first require_once 'Zend/Json.php'; $val = Zend_Json::encode($val); } $val = preg_replace('/"([^"]*)":/', '$1:', $val); } else { if (is_array($val)) { $val = implode(' ', $val); } $val = $this->view->escape($val); } if ('id' == $key) { $val = $this->_normalizeId($val); } if (strpos($val, '"') !== false) { $xhtml .= " $key='$val'"; } else { $xhtml .= " $key=\"$val\""; } } return $xhtml; } /** * Normalize an ID * * @param string $value * @return string */ protected function _normalizeId($value) { if (strstr($value, '[')) { if ('[]' == substr($value, -2)) { $value = substr($value, 0, strlen($value) - 2); } $value = trim($value, ']'); $value = str_replace('][', '-', $value); $value = str_replace('[', '-', $value); } return $value; } }
Save!!!
© 2022 - 2023 WIBUHAXOR V1 By Lutfifakee || Padang Blackhat