本文整理汇总了PHP中Survey_Common_Action类的典型用法代码示例。如果您正苦于以下问题:PHP Survey_Common_Action类的具体用法?PHP Survey_Common_Action怎么用?PHP Survey_Common_Action使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Survey_Common_Action类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _renderWrappedTemplate
/**
* Renders template(s) wrapped in header and footer
*
* @param string $sAction Current action, the folder to fetch views from
* @param string|array $aViewUrls View url(s)
* @param array $aData Data to be passed on. Optional.
*/
protected function _renderWrappedTemplate($sAction = 'assessments', $aViewUrls = array(), $aData = array())
{
$this->getController()->_js_admin_includes(Yii::app()->getConfig('adminscripts') . 'assessments.js');
$this->getController()->_js_admin_includes(Yii::app()->getConfig('generalscripts') . 'jquery/jquery.tablesorter.min.js');
$this->getController()->_css_admin_includes(Yii::app()->getConfig('adminstyleurl') . "superfish.css");
parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData);
}
示例2: _renderWrappedTemplate
/**
* Renders template(s) wrapped in header and footer
*
* @param string $sAction Current action, the folder to fetch views from
* @param string|array $aViewUrls View url(s)
* @param array $aData Data to be passed on. Optional.
*/
protected function _renderWrappedTemplate($sAction = 'assessments', $aViewUrls = array(), $aData = array())
{
App()->getClientScript()->registerScriptFile(Yii::app()->getConfig('adminscripts') . 'assessments.js');
App()->getClientScript()->registerPackage('jquery-tablesorter');
App()->getClientScript()->registerPackage('jquery-superfish');
parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData);
}
示例3: _renderWrappedTemplate
/**
* Renders template(s) wrapped in header and footer
*
* @param string $sAction Current action, the folder to fetch views from
* @param string|array $aViewUrls View url(s)
* @param array $aData Data to be passed on. Optional.
*/
protected function _renderWrappedTemplate($sAction = 'participants', $aViewUrls = array(), $aData = array())
{
$aData['display']['menu_bars'] = false;
foreach ((array) $aViewUrls as $sViewUrl) {
$a_ViewUrls[] = $sViewUrl . '_view';
}
parent::_renderWrappedTemplate($sAction, $a_ViewUrls, $aData);
}
示例4: _renderWrappedTemplate
/**
* Renders template(s) wrapped in header and footer
*
* @param string $sAction Current action, the folder to fetch views from
* @param string|array $aViewUrls View url(s)
* @param array $aData Data to be passed on. Optional.
*/
protected function _renderWrappedTemplate($sAction = 'participants', $aViewUrls = array(), $aData = array())
{
App()->getClientScript()->registerPackage('bootstrap-multiselect');
$aData['display']['menu_bars'] = false;
foreach ((array) $aViewUrls as $sViewUrl) {
$a_ViewUrls[] = $sViewUrl . '_view';
}
parent::_renderWrappedTemplate($sAction, $a_ViewUrls, $aData);
}
示例5: _renderWrappedTemplate
/**
* Renders template(s) wrapped in header and footer
*
* @param string $sAction Current action, the folder to fetch views from
* @param string|array $aViewUrls View url(s)
* @param array $aData Data to be passed on. Optional.
*/
protected function _renderWrappedTemplate($sAction = 'participants', $aViewUrls = array(), $aData = array())
{
App()->getClientScript()->registerPackage('bootstrap-multiselect');
$aData['display']['menu_bars'] = false;
// Add "_view" to urls
array_walk($aViewUrls, function (&$url) {
$url .= "_view";
});
parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData);
}
示例6: die
function __construct($controller, $id)
{
parent::__construct($controller, $id);
if (!Permission::model()->hasGlobalPermission('superadmin', 'read')) {
die;
}
if (!in_array(Yii::app()->db->getDriverName(), array('mysql', 'mysqli')) || Yii::app()->getConfig('demoMode') == true) {
die($this->getController()->lang->gT('This feature is only available for MySQL databases.'));
}
}
示例7: die
function __construct($controller, $id)
{
parent::__construct($controller, $id);
if (Yii::app()->session['USER_RIGHT_SUPERADMIN'] != 1) {
die;
}
if (!in_array(Yii::app()->db->getDriverName(), array('mysql', 'mysqli')) || Yii::app()->getConfig('demoMode') == true) {
die($this->getController()->lang->gT('This feature is only available for MySQL databases.'));
}
}
示例8: _renderWrappedTemplate
/**
* Renders template(s) wrapped in header and footer
*
* @param string $sAction Current action, the folder to fetch views from
* @param string|array $aViewUrls View url(s)
* @param array $aData Data to be passed on. Optional.
*/
protected function _renderWrappedTemplate($sAction = 'saved', $aViewUrls = array(), $aData = array())
{
$aData['display']['menu_bars']['browse'] = gT('Browse responses');
// browse is independent of the above
$aData['surveyid'] = $iSurveyId = $aData['iSurveyId'];
$surveyinfo = Survey::model()->findByPk($iSurveyId)->surveyinfo;
$aData["surveyinfo"] = $surveyinfo;
$aData['title_bar']['title'] = gT('Browse responses') . ': ' . $surveyinfo['surveyls_title'];
$aData['menu']['close'] = true;
$aData['menu']['edition'] = false;
parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData);
}
示例9: _renderWrappedTemplate
/**
* Renders template(s) wrapped in header and footer
*
* @param string $sAction Current action, the folder to fetch views from
* @param string|array $aViewUrls View url(s)
* @param array $aData Data to be passed on. Optional.
*/
protected function _renderWrappedTemplate($sAction = 'assessments', $aViewUrls = array(), $aData = array())
{
$aData['sidebar']['state'] = "close";
$iSurveyID = $aData['surveyid'];
$surveyinfo = Survey::model()->findByPk($iSurveyID)->surveyinfo;
$aData['title_bar']['title'] = $surveyinfo['surveyls_title'] . "(" . gT("ID") . ":" . $iSurveyID . ")";
$aData['surveybar']['savebutton']['form'] = true;
$aData['surveybar']['closebutton']['url'] = 'admin/survey/sa/view/surveyid/' . $iSurveyID;
$aData['gid'] = null;
App()->getClientScript()->registerScriptFile(Yii::app()->getConfig('adminscripts') . 'assessments.js');
parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData);
}
示例10: _renderWrappedTemplate
/**
* Renders template(s) wrapped in header and footer
*
* @param string $sAction Current action, the folder to fetch views from
* @param string|array $aViewUrls View url(s)
* @param array $aData Data to be passed on. Optional.
*/
protected function _renderWrappedTemplate($sAction = 'assessments', $aViewUrls = array(), $aData = array())
{
$aData['sidemenu']['state'] = false;
$iSurveyID = $aData['surveyid'];
$surveyinfo = Survey::model()->findByPk($iSurveyID)->surveyinfo;
$aData['surveybar']['closebutton']['url'] = 'admin/survey/sa/view/surveyid/' . $iSurveyID;
// Close button
$aData['title_bar']['title'] = $surveyinfo['surveyls_title'] . "(" . gT("ID") . ":" . $iSurveyID . ")";
$aData['surveybar']['savebutton']['form'] = TRUE;
$aData['gid'] = null;
App()->getClientScript()->registerScriptFile(App()->getAssetManager()->publish(ADMIN_SCRIPT_PATH . 'assessments.js'));
parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData);
}
示例11: _renderWrappedTemplate
/**
* Renders template(s) wrapped in header and footer
*
* @param string $sAction Current action, the folder to fetch views from
* @param string|array $aViewUrls View url(s)
* @param array $aData Data to be passed on. Optional.
*/
protected function _renderWrappedTemplate($sAction = 'participants', $aViewUrls = array(), $aData = array())
{
App()->getClientScript()->registerPackage('bootstrap-multiselect');
$aData['display']['menu_bars'] = false;
// Add "_view" to urls
if (is_array($aViewUrls)) {
array_walk($aViewUrls, function (&$url) {
$url .= "_view";
});
} elseif (is_string($aViewUrls)) {
$aViewUrls .= "_view";
} else {
// Complete madness
throw new \InvalidArgumentException("aViewUrls must be either string or array");
}
parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData);
}
示例12: _renderWrappedTemplate
/**
* Renders template(s) wrapped in header and footer
*
* @param string $sAction Current action, the folder to fetch views from
* @param string|array $aViewUrls View url(s)
* @param array $aData Data to be passed on. Optional.
*/
protected function _renderWrappedTemplate($sAction = 'region/country', $aViewUrls = array(), $aData = array())
{
$aData['display']['menu_bars']['country'] = true;
parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData);
}
示例13: _renderWrappedTemplate
/**
* Renders template(s) wrapped in header and footer
*
* @param string $sAction Current action, the folder to fetch views from
* @param string|array $aViewUrls View url(s)
* @param array $aData Data to be passed on. Optional.
*/
protected function _renderWrappedTemplate($sAction = 'export', $aViewUrls = array(), $aData = array())
{
$this->getController()->_css_admin_includes(Yii::app()->getConfig('adminstyleurl') . "superfish.css");
$aData['display']['menu_bars']['gid_action'] = 'exportstructureGroup';
parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData);
}
示例14: _renderWrappedTemplate
/**
* Renders template(s) wrapped in header and footer
*
* @param string $sAction Current action, the folder to fetch views from
* @param string|array $aViewUrls View url(s)
* @param array $aData Data to be passed on. Optional.
*/
protected function _renderWrappedTemplate($sAction = 'authentication', $aViewUrls = array(), $aData = array())
{
App()->getClientScript()->registerPackage('panels-animation');
$aData['display']['menu_bars'] = false;
parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData);
}
示例15: _renderWrappedTemplate
/**
* Renders template(s) wrapped in header and footer
*
* @param string $sAction Current action, the folder to fetch views from
* @param string|array $aViewUrls View url(s)
* @param array $aData Data to be passed on. Optional.
*/
protected function _renderWrappedTemplate($sAction = 'token', $aViewUrls = array(), $aData = array())
{
$aData['imageurl'] = Yii::app()->getConfig('adminimageurl');
$aData['display']['menu_bars'] = false;
parent::_renderWrappedTemplate($sAction, $aViewUrls, $aData);
}