コード例 #1
0
ファイル: SettingsDialog.php プロジェクト: kirkbauer2/kirkxc
 /**
  * Return list of allowed targets
  *
  * @return array
  */
 public static function getAllowedTargets()
 {
     $list = parent::getAllowedTargets();
     $list[] = 'settings';
     $list[] = 'module';
     return $list;
 }
コード例 #2
0
ファイル: CreateASN.php プロジェクト: kirkbauer2/kirkxc
 /**
  * Return list of allowed targets
  *
  * @return array
  */
 public static function getAllowedTargets()
 {
     $list = parent::getAllowedTargets();
     $list[] = 'order';
     return $list;
 }
コード例 #3
0
ファイル: LanguageImport.php プロジェクト: kirkbauer2/kirkxc
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && (bool) $this->getImportFilePath();
 }
コード例 #4
0
 /**
  * Register CSS files
  *
  * @return array
  */
 public function getCSSFiles()
 {
     $list = parent::getCSSFiles();
     $list[] = 'modules/CDev/PINCodes/add_pin_codes_dialog/style.css';
     return $list;
 }
コード例 #5
0
ファイル: Authorization.php プロジェクト: kirkbauer2/kirkxc
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     $target = \XLite\Core\Request::getInstance()->target;
     return parent::isVisible() && ('login' == $target || 'profile' == $target && 'login' == \XLite\Core\Request::getInstance()->mode);
 }
コード例 #6
0
ファイル: CacheManagement.php プロジェクト: kirkbauer2/kirkxc
 /**
  * Return list of allowed targets
  *
  * @return array
  */
 public static function getAllowedTargets()
 {
     $list = parent::getAllowedTargets();
     $list[] = 'cache_management';
     return $list;
 }
コード例 #7
0
ファイル: SectionDialog.php プロジェクト: kingsj/core
 /**
  * Return title
  *
  * @return string
  */
 protected function getHead()
 {
     $mode = strval(\XLite\Core\Request::getInstance()->mode);
     $sections = $this->defineSections();
     return isset($sections[$mode]) ? $sections[$mode]['head'] : parent::getHead();
 }
コード例 #8
0
ファイル: FileSelectorDialog.php プロジェクト: kingsj/core
 /**
  * Return list of allowed targets
  *
  * @return array
  */
 public static function getAllowedTargets()
 {
     $list = parent::getAllowedTargets();
     $list[] = 'select_file';
     return $list;
 }
コード例 #9
0
 /**
  * Return list of allowed targets
  *
  * @return array
  */
 public static function getAllowedTargets()
 {
     $list = parent::getAllowedTargets();
     $list[] = 'pitney_bowes';
     return $list;
 }
コード例 #10
0
ファイル: DeleteCategory.php プロジェクト: kingsj/core
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && 'delete' === \XLite\Core\Request::getInstance()->pre_action;
 }
コード例 #11
0
ファイル: AddMethod.php プロジェクト: kirkbauer2/kirkxc
 /**
  * Return list of allowed targets
  *
  * @return array
  */
 public static function getAllowedTargets()
 {
     $list = parent::getAllowedTargets();
     $list[] = 'payment_method_selection';
     return $list;
 }
コード例 #12
0
ファイル: EditMethod.php プロジェクト: kirkbauer2/kirkxc
 /**
  * Return list of allowed targets
  *
  * @return array
  */
 public static function getAllowedTargets()
 {
     $list = parent::getAllowedTargets();
     $list[] = 'shipping_rates';
     return $list;
 }