getEventScriptList() 공개 정적인 메소드

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;
 }