public function getAllMissingResources() {
        $missingResources = [];
        $offset = FALSE;
        $all = TRUE;
        $start_time = time();

        while (!is_null($offset)) {
            $delta = time() - $start_time;

            if ($delta > $this->getTimeOut()) {
                $all = FALSE;
                break;
            }

            if (!$offset) {
                $params = NULL;
            }
            else {
                $params = new MissingResourcesParameters();
                $params->setOffset($offset);
            }

            $response = $this->getMissingResources($params);
            $offset = !empty($response['offset']) ? $response['offset'] : NULL;
            $missingResources = array_merge($missingResources, $response['items']);
        }

        return [
            'items' => $missingResources,
            'all' => $all,
        ];
    }
public function getAllMissingResources() {
        $missingResources = [];
        $offset = FALSE;
        $all = TRUE;
        $start_time = time();

        while (!is_null($offset)) {
            $delta = time() - $start_time;

            if ($delta > $this->getTimeOut()) {
                $all = FALSE;
                break;
            }

            if (!$offset) {
                $params = NULL;
            }
            else {
                $params = new MissingResourcesParameters();
                $params->setOffset($offset);
            }

            $response = $this->getMissingResources($params);
            $offset = !empty($response['offset']) ? $response['offset'] : NULL;
            $missingResources = array_merge($missingResources, $response['items']);
        }

        return [
            'items' => $missingResources,
            'all' => $all,
        ];
    }
public function getAllMissingResources ( ) { $ missingResources = [ ] ; $ offset = FALSE ; $ all = TRUE ; $ start_time = time ( ) ; while ( ! is_null ( $ offset ) ) { $ delta = time ( ) - $ start_time ; if ( $ delta > $ this -> getTimeOut ( ) ) { $ all = FALSE ; break ; } if ( ! $ offset ) { $ params = NULL ; } else { $ params = new MissingResourcesParameters ( ) ; $ params -> setOffset ( $ offset ) ; } $ response = $ this -> getMissingResources ( $ params ) ; $ offset = ! empty ( $ response [ 'offset' ] ) ? $ response [ 'offset' ] : NULL ; $ missingResources = array_merge ( $ missingResources , $ response [ 'items' ] ) ; } return [ 'items' => $ missingResources , 'all' => $ all , ] ; }
Get all missing resources.

@return array
Contains next keys:
- "items": array of missing resources
- "all": boolean which indicates whether function has read all the
available items or not.

@throws SmartlingApiException
Get all missing resources .