public static function getNextTask(&$response)
    {
        //====================================================================//
        // Analyze SOAP Results
        if (!$response || !isset($response->result) || (true != $response->result)) {
            return false;
        }
        //====================================================================//
        // Check if Tasks Buffer is Empty
        if (!Splash::count($response->tasks)) {
            return false;
        }
        //====================================================================//
        // Detect ArrayObjects
        if ($response->tasks instanceof ArrayObject) {
            $response->tasks = $response->tasks->getArrayCopy();
        }
        //====================================================================//
        // Shift Task Array
        return array_shift($response->tasks);
    }
public static function getNextTask(&$response)
    {
        //====================================================================//
        // Analyze SOAP Results
        if (!$response || !isset($response->result) || (true != $response->result)) {
            return false;
        }
        //====================================================================//
        // Check if Tasks Buffer is Empty
        if (!Splash::count($response->tasks)) {
            return false;
        }
        //====================================================================//
        // Detect ArrayObjects
        if ($response->tasks instanceof ArrayObject) {
            $response->tasks = $response->tasks->getArrayCopy();
        }
        //====================================================================//
        // Shift Task Array
        return array_shift($response->tasks);
    }
public static function getNextTask ( & $ response ) { //====================================================================// // Analyze SOAP Results if ( ! $ response || ! isset ( $ response -> result ) || ( true != $ response -> result ) ) { return false ; } //====================================================================// // Check if Tasks Buffer is Empty if ( ! Splash :: count ( $ response -> tasks ) ) { return false ; } //====================================================================// // Detect ArrayObjects if ( $ response -> tasks instanceof ArrayObject ) { $ response -> tasks = $ response -> tasks -> getArrayCopy ( ) ; } //====================================================================// // Shift Task Array return array_shift ( $ response -> tasks ) ; }
Get Next Task Available in Response Tasks Buffer

@param ArrayObject|false $response Webservice Call Response

@return false|mixed
Get Next Task Available in Response Tasks Buffer