getEventScriptList() public static method

public static getEventScriptList ( AbstractServerEvent $event, DBServer $eventServer, DBServer $targetServer )
$event AbstractServerEvent
$eventServer DBServer
$targetServer DBServer
示例#1
0
 private function getScripts(Event $event, DBServer $eventServer, DBServer $targetServer)
 {
     $retval = array();
     try {
         $scripts = Scalr_Scripting_Manager::getEventScriptList($event, $eventServer, $targetServer);
         if (count($scripts) > 0) {
             foreach ($scripts as $script) {
                 $retval[] = $itm;
             }
         }
     } catch (Exception $e) {
     }
     return $retval;
 }
 private function getScripts(Event $event, DBServer $eventServer, DBServer $targetServer)
 {
     $retval = array();
     try {
         $scripts = Scalr_Scripting_Manager::getEventScriptList($event, $eventServer, $targetServer);
         if (count($scripts) > 0) {
             foreach ($scripts as $script) {
                 $itm = new stdClass();
                 $itm->asynchronous = $script['issync'] == 1 ? '0' : '1';
                 $itm->timeout = $script['timeout'];
                 $itm->name = $script['name'];
                 $itm->body = $script['body'];
                 $retval[] = $itm;
             }
         }
     } catch (Exception $e) {
     }
     return $retval;
 }