本文整理汇总了PHP中sfForm::getJavaScripts方法的典型用法代码示例。如果您正苦于以下问题:PHP sfForm::getJavaScripts方法的具体用法?PHP sfForm::getJavaScripts怎么用?PHP sfForm::getJavaScripts使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sfForm
的用法示例。
在下文中一共展示了sfForm::getJavaScripts方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getJavaScripts
public function getJavaScripts()
{
$javaScripts = parent::getJavaScripts();
$javaScripts[] = plugin_web_path('orangehrmLeavePlugin', 'js/viewLeaveListSuccess.js');
return $javaScripts;
}
示例2: use_javascripts_for_form
/**
* Adds javascripts from the supplied form to the response object.
*
* @param sfForm $form
*/
function use_javascripts_for_form(sfForm $form)
{
$response = sfContext::getInstance()->getResponse();
foreach ($form->getJavaScripts() as $file) {
$response->addJavascript($file);
}
}
示例3: getJavaScripts
public function getJavaScripts()
{
$javaScripts = parent::getJavaScripts();
$javaScripts[] = plugin_web_path('orangehrmLeavePlugin', 'js/defineWorkWeekSuccess.js');
$javaScripts[] = plugin_web_path('orangehrmLeavePlugin', 'js/defineWorkWeekSuccessValidate.js');
return $javaScripts;
}
示例4: getJavaScripts
public function getJavaScripts()
{
$javaScripts = parent::getJavaScripts();
$javaScripts[] = '/orangehrmCoreLeavePlugin/js/defineHolidaySuccess.js';
$javaScripts[] = '/orangehrmCoreLeavePlugin/js/defineHolidaySuccessValidate.js';
return $javaScripts;
}
示例5: getJavaScripts
public function getJavaScripts()
{
$javaScripts = parent::getJavaScripts();
$javaScripts[] = '/orangehrmCoreLeavePlugin/js/viewLeaveListSuccess.js';
return $javaScripts;
}