本文整理汇总了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());
}