Public Member Functions | |
setSrc ($src, $type=null) | |
Protected Member Functions | |
_construct () |
Definition at line 33 of file Js.php.
_construct | ( | ) | [protected] |
Internal constructor, that is called from real constructor
Please override this one instead of overriding real __construct constructor
Please override this one instead of overriding real __construct constructor
Reimplemented from Mage_Core_Block_Text_Tag.
Definition at line 36 of file Js.php.
00037 { 00038 parent::_construct(); 00039 $this->setTagName('script'); 00040 $this->setTagParams(array('language'=>'javascript', 'type'=>'text/javascript')); 00041 }
setSrc | ( | $ | src, | |
$ | type = null | |||
) |
Definition at line 43 of file Js.php.
00044 { 00045 $type = (string)$type; 00046 if (empty($type)) { 00047 $type = 'js'; 00048 } 00049 $url = Mage::getBaseUrl($type).$src; 00050 00051 return $this->setTagParam('src', $url); 00052 }