protected function includeEverything($data)
    {
        if (is_null($data)) {

            $data = [];
        }

        if (!isset($data['include_body'])) {

            $data['include_body'] = true;
        }

        if (!isset($data['include_categories'])) {

            $data['include_categories'] = true;
        }

        if (!isset($data['include_tags'])) {

            $data['include_tags'] = true;
        }

        if (!isset($data['include_associations'])) {

            $data['include_associations'] = true;
        }

        if (!isset($data['include_gallery'])) {

            $data['include_gallery'] = true;
        }

        if (!isset($data['include_siblings'])) {

            $data['include_siblings'] = true;
        }

        // --------------------------------------------------------------------------

        return $data;
    }
protected function includeEverything($data)
    {
        if (is_null($data)) {

            $data = [];
        }

        if (!isset($data['include_body'])) {

            $data['include_body'] = true;
        }

        if (!isset($data['include_categories'])) {

            $data['include_categories'] = true;
        }

        if (!isset($data['include_tags'])) {

            $data['include_tags'] = true;
        }

        if (!isset($data['include_associations'])) {

            $data['include_associations'] = true;
        }

        if (!isset($data['include_gallery'])) {

            $data['include_gallery'] = true;
        }

        if (!isset($data['include_siblings'])) {

            $data['include_siblings'] = true;
        }

        // --------------------------------------------------------------------------

        return $data;
    }
protected function includeEverything ( $ data ) { if ( is_null ( $ data ) ) { $ data = [ ] ; } if ( ! isset ( $ data [ 'include_body' ] ) ) { $ data [ 'include_body' ] = true ; } if ( ! isset ( $ data [ 'include_categories' ] ) ) { $ data [ 'include_categories' ] = true ; } if ( ! isset ( $ data [ 'include_tags' ] ) ) { $ data [ 'include_tags' ] = true ; } if ( ! isset ( $ data [ 'include_associations' ] ) ) { $ data [ 'include_associations' ] = true ; } if ( ! isset ( $ data [ 'include_gallery' ] ) ) { $ data [ 'include_gallery' ] = true ; } if ( ! isset ( $ data [ 'include_siblings' ] ) ) { $ data [ 'include_siblings' ] = true ; } // -------------------------------------------------------------------------- return $ data ; }
Sets the data array to include everything

This method is called by the getBy*() methods and, if not already set,
will alter the $data array so that all the include_* parameters are set.

@param string $data Data passed from the calling method

@return void
Sets the data array to include everything