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


PHP Zend_Dojo_View_Helper_Dojo::useDeclarative方法代碼示例

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


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

示例1: __toString

 /**
  * String representation of dojo environment
  *
  * @return string
  */
 public function __toString()
 {
     if (!$this->isEnabled()) {
         return '';
     }
     $this->_isXhtml = $this->view->doctype()->isXhtml();
     if (Zend_Dojo_View_Helper_Dojo::useDeclarative()) {
         if (null === $this->getDjConfigOption('parseOnLoad')) {
             $this->setDjConfigOption('parseOnLoad', true);
         }
     }
     if (!empty($this->_dijits)) {
         $this->registerDijitLoader();
     }
     $html = $this->_renderStylesheets() . PHP_EOL . $this->_renderDjConfig() . PHP_EOL . $this->_renderDojoScriptTag() . PHP_EOL . $this->_renderLayers() . PHP_EOL . $this->_renderExtras();
     return $html;
 }
開發者ID:mohdhise,項目名稱:phpmark,代碼行數:22,代碼來源:Container.php

示例2: _useDeclarative

 /**
  * Whether or not to use declarative dijit creation
  *
  * @return bool
  */
 protected function _useDeclarative()
 {
     return Zend_Dojo_View_Helper_Dojo::useDeclarative();
 }
開發者ID:bartolomeu,項目名稱:estoque_gusella,代碼行數:9,代碼來源:Dijit.php

示例3: testShouldAllowSpecifyingDeclarativeUsage

 public function testShouldAllowSpecifyingDeclarativeUsage()
 {
     Zend_Dojo_View_Helper_Dojo::setUseDeclarative();
     $this->assertTrue(Zend_Dojo_View_Helper_Dojo::useDeclarative());
 }
開發者ID:SustainableCoastlines,項目名稱:loveyourwater,代碼行數:5,代碼來源:DojoTest.php

示例4: testShouldJsonEncodeConstraints

 public function testShouldJsonEncodeConstraints()
 {
     $html = $this->getElement();
     if (!preg_match('/constraints="(.*?)(" )/', $html, $m)) {
         $this->fail('Did not serialize constraints');
     }
     $constraints = str_replace("'", '"', $m[1]);
     if (Zend_Dojo_View_Helper_Dojo::useDeclarative()) {
         // Convert ' to "'" for json_decode. See Zend_Dojo_View_Helper_Dijit::_prepareDijit() (line 254)
         $constraints = str_replace(''', '"', $constraints);
     }
     $constraints = Zend_Json::decode($constraints);
     $this->assertTrue(is_array($constraints), var_export($m[1], 1));
     $this->assertTrue(array_key_exists('min', $constraints));
     $this->assertTrue(array_key_exists('max', $constraints));
     $this->assertTrue(array_key_exists('places', $constraints));
 }
開發者ID:sasezaki,項目名稱:mirror-zf1-tests,代碼行數:17,代碼來源:NumberSpinnerTest.php

示例5: testShouldUseDeclarativeDijitCreationByDefault

 public function testShouldUseDeclarativeDijitCreationByDefault()
 {
     $this->assertTrue(Zend_Dojo_View_Helper_Dojo::useDeclarative());
 }
開發者ID:bhaumik25,項目名稱:zend-framework,代碼行數:4,代碼來源:DojoTest.php


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