本文整理匯總了PHP中sfWidgetForm::getJavaScripts方法的典型用法代碼示例。如果您正苦於以下問題:PHP sfWidgetForm::getJavaScripts方法的具體用法?PHP sfWidgetForm::getJavaScripts怎麽用?PHP sfWidgetForm::getJavaScripts使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類sfWidgetForm
的用法示例。
在下文中一共展示了sfWidgetForm::getJavaScripts方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: getJavaScripts
public function getJavaScripts()
{
/* prototype is required... :(
* TODO: reimplement form jQuery
*/
return array_merge(parent::getJavaScripts(), array('/dcReloadedFormExtraPlugin/js/prototype.js', '/dcReloadedFormExtraPlugin/js/ajax_dependence.js'), $this->getDependantWidgetJavaScripts());
}
示例2: getJavaScripts
/**
* Merge javascripts for each selectable widget
*
* @return array
*/
public function getJavaScripts()
{
$ret = array_merge(parent::getJavaScripts(), array('/dcReloadedFormExtraPlugin/js/jquery.cookie.js'));
foreach ($this->widgets as $k => $w) {
$ret = array_merge($ret, $w->getJavaScripts());
}
return $ret;
}
示例3: getJavaScripts
public function getJavaScripts()
{
$parentJs = parent::getJavaScripts();
$fromDateWidget = $this->getOption($this->attributes['id'] . '_' . 'from_date');
$fromWidgetJs = $fromDateWidget->getJavaScripts();
$javaScripts = array_merge($parentJs, $fromWidgetJs);
return $javaScripts;
}
示例4: getJavaScripts
public function getJavaScripts()
{
$javaScripts = parent::getJavaScripts();
$javaScripts[] = plugin_web_path('orangehrmLeavePlugin', 'js/ohrmWidgetFormLeaveDuration.js');
return $javaScripts;
}
示例5: getJavaScripts
/**
* Gets the JavaScript paths associated with the widget.
*
* @return array An array of JavaScript paths
*/
public function getJavaScripts()
{
return array_merge(parent::getJavaScripts(), array('/dcReloadedFormExtraPlugin/js/change_for_credentials.js'));
}
示例6: getJavaScripts
public function getJavaScripts()
{
return array_merge(parent::getJavaScripts(), array("/dcReloadedFormExtraPlugin/js/alTimepicker/jquery.ui.timepicker.js"));
}
示例7: getJavaScripts
/**
* Merge javascripts for this widget with those scripts needed by widget option
*
* @return array
*/
public function getJavaScripts()
{
return array_merge(parent::getJavaScripts(), array('/dcReloadedFormExtraPlugin/js/jstree/jquery.jstree.js'));
}
示例8: getJavaScripts
/**
* Merge javascripts for this widget with those scripts needed by widget option
*
* @return array
*/
public function getJavaScripts()
{
return array_merge(parent::getJavaScripts(), array('/dcReloadedFormExtraPlugin/js/dc_widget_form_jquery_dependence.js'), $this->getOption('widget')->getJavascripts());
}