예제 #1
0
파일: Main.php 프로젝트: kirkbauer2/kirkxc
 /**
  * Define actions
  *
  * @return array
  */
 protected function defineActions()
 {
     $list = parent::defineActions();
     $list['import_language'] = array('class' => '\\XLite\\View\\Button\\FileSelector', \XLite\View\Button\AButton::PARAM_LABEL => static::t('Import language from CSV file'), \XLite\View\Button\FileSelector::PARAM_OBJECT => 'language', \XLite\View\Button\FileSelector::PARAM_FILE_OBJECT => 'file');
     $list['add_label'] = array('class' => '\\XLite\\View\\LanguagesModify\\Button\\AddNewLabel', \XLite\View\Button\AButton::PARAM_LABEL => static::t('Add new label'), \XLite\View\LanguagesModify\Button\AddNewLabel::PARAM_LANGUAGE => \XLite\Core\Request::getInstance()->code);
     return $list;
 }
예제 #2
0
파일: Main.php 프로젝트: kirkbauer2/kirkxc
 /**
  * Define actions
  *
  * @return array
  */
 protected function defineActions()
 {
     $actions = parent::defineActions();
     $actions['submit'][\XLite\View\Button\AButton::PARAM_LABEL] = static::t('Find states');
     return $actions;
 }