コード例 #1
0
 public function testInvalidFlagPassedToUseProgrammaticShouldUseProgrammaticWithScripts()
 {
     Zend_Dojo_View_Helper_Dojo::setUseProgrammatic('foo');
     $this->assertFalse(Zend_Dojo_View_Helper_Dojo::useProgrammaticNoScript());
     $this->assertTrue(Zend_Dojo_View_Helper_Dojo::useProgrammatic());
 }
コード例 #2
0
ファイル: Dijit.php プロジェクト: bartolomeu/estoque_gusella
 /**
  * Whether or not to use programmatic dijit creation
  *
  * @return bool
  */
 protected function _useProgrammatic()
 {
     return Zend_Dojo_View_Helper_Dojo::useProgrammatic();
 }
コード例 #3
0
ファイル: DojoTest.php プロジェクト: bhaumik25/zend-framework
 public function testShouldAllowSpecifyingProgrammaticDijitCreationWithNoScriptGeneration()
 {
     $this->testShouldUseDeclarativeDijitCreationByDefault();
     Zend_Dojo_View_Helper_Dojo::setUseProgrammatic(-1);
     $this->assertTrue(Zend_Dojo_View_Helper_Dojo::useProgrammatic());
     $this->assertTrue(Zend_Dojo_View_Helper_Dojo::useProgrammaticNoScript());
 }