本文整理汇总了PHP中sfForm::getStylesheets方法的典型用法代码示例。如果您正苦于以下问题:PHP sfForm::getStylesheets方法的具体用法?PHP sfForm::getStylesheets怎么用?PHP sfForm::getStylesheets使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类sfForm
的用法示例。
在下文中一共展示了sfForm::getStylesheets方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getStylesheets
public function getStylesheets()
{
parent::getStylesheets();
$styleSheets = parent::getStylesheets();
// $styleSheets['/orangehrmLeavePlugin/css/viewHolidayListSuccessSearch.css'] = 'screen';
return $styleSheets;
}
示例2: getStylesheets
public function getStylesheets()
{
$styleSheets = parent::getStylesheets();
return $styleSheets;
}
示例3: get_stylesheets_for_form
/**
* Returns <link> tags for all stylesheets associated with the given form.
*
* The stylesheets are set by implementing the getStyleSheets() method in the
* corresponding widget.
*
* <code>
* class MyWidget extends sfWidgetForm
* {
* public function getStyleSheets()
* {
* return array('/path/to/a/file.css');
* }
* }
* </code>
*
* @return string <link> tags
*/
function get_stylesheets_for_form(sfForm $form)
{
$html = '';
foreach ($form->getStylesheets() as $file => $media) {
$html .= stylesheet_tag($file, array('media' => $media));
}
return $html;
}
示例4: getStylesheets
/**
*
* @return array
*/
public function getStylesheets()
{
$styleSheets = parent::getStylesheets();
$styleSheets['/orangehrmCoreLeavePlugin/css/assignLeaveSuccess.css'] = 'all';
$styleSheets['/orangehrmCoreLeavePlugin/css/common.css'] = 'all';
return $styleSheets;
}
示例5: use_stylesheets_for_form
/**
* Adds stylesheets from the supplied form to the response object.
*
* @param sfForm $form
*/
function use_stylesheets_for_form(sfForm $form)
{
$response = sfContext::getInstance()->getResponse();
foreach ($form->getStylesheets() as $file => $media) {
$response->addStylesheet($file, '', array('media' => $media));
}
}
示例6: dm_get_stylesheets_for_form
/**
* Returns <link> tags for all stylesheets associated with the given form.
* @return string <link> tags
*/
function dm_get_stylesheets_for_form(sfForm $form)
{
$html = '';
foreach ($form->getStylesheets() as $file => $media) {
if (is_numeric($file) && is_string($media)) {
$file = $media;
$media = 'all';
}
$file = sfContext::getInstance()->getResponse()->calculateAssetPath('css', $file);
$html .= stylesheet_tag($file, array('media' => $media));
}
return $html;
}
示例7: getStylesheets
/**
*
* @return array
*/
public function getStylesheets()
{
$styleSheets = parent::getStylesheets();
$styleSheets[plugin_web_path('orangehrmLeavePlugin', 'css/applyLeaveSuccess.css')] = 'all';
return $styleSheets;
}