コード例 #1
0
ファイル: Db.php プロジェクト: kirkbauer2/kirkxc
 /**
  * Return list of targets allowed for this widget
  *
  * @return array
  */
 public static function getAllowedTargets()
 {
     $result = parent::getAllowedTargets();
     $result[] = 'db_backup';
     $result[] = 'db_restore';
     return $result;
 }
コード例 #2
0
ファイル: Main.php プロジェクト: kirkbauer2/kirkxc
 /**
  * Return list of targets allowed for this widget
  *
  * @return array
  */
 public static function getAllowedTargets()
 {
     $result = parent::getAllowedTargets();
     $result[] = 'main';
     return $result;
 }