public function getContextLabeled($sort = true)
    {
        $result = [];
        $labels = $this->describe($this->context);
        $this->flattenArray($labels, $result);

        $result['file_count']       = 'File: Number of contacts in this file';
        $result['file_test']        = 'File: Inserts ".test" if testing';
        $result['file_date']        = 'File: Date/time of file creation';
        $result['file_type']        = 'File: Type of file, such as csv/xsl';
        $result['file_compression'] = 'File: Compression of the file, such as zip/gz';
        $result['file_extension']   = 'File: Automatic extension such as xsl/zip/csv';
        $result['api_date']         = 'API: Date/time of the API request';

        if ($sort) {
            asort($result, SORT_STRING | SORT_FLAG_CASE | SORT_NATURAL);
        }

        return $result;
    }
public function getContextLabeled($sort = true)
    {
        $result = [];
        $labels = $this->describe($this->context);
        $this->flattenArray($labels, $result);

        $result['file_count']       = 'File: Number of contacts in this file';
        $result['file_test']        = 'File: Inserts ".test" if testing';
        $result['file_date']        = 'File: Date/time of file creation';
        $result['file_type']        = 'File: Type of file, such as csv/xsl';
        $result['file_compression'] = 'File: Compression of the file, such as zip/gz';
        $result['file_extension']   = 'File: Automatic extension such as xsl/zip/csv';
        $result['api_date']         = 'API: Date/time of the API request';

        if ($sort) {
            asort($result, SORT_STRING | SORT_FLAG_CASE | SORT_NATURAL);
        }

        return $result;
    }
public function getContextLabeled ( $ sort = true ) { $ result = [ ] ; $ labels = $ this -> describe ( $ this -> context ) ; $ this -> flattenArray ( $ labels , $ result ) ; $ result [ 'file_count' ] = 'File: Number of contacts in this file' ; $ result [ 'file_test' ] = 'File: Inserts ".test" if testing' ; $ result [ 'file_date' ] = 'File: Date/time of file creation' ; $ result [ 'file_type' ] = 'File: Type of file, such as csv/xsl' ; $ result [ 'file_compression' ] = 'File: Compression of the file, such as zip/gz' ; $ result [ 'file_extension' ] = 'File: Automatic extension such as xsl/zip/csv' ; $ result [ 'api_date' ] = 'API: Date/time of the API request' ; if ( $ sort ) { asort ( $ result , SORT_STRING | SORT_FLAG_CASE | SORT_NATURAL ) ; } return $ result ; }
Get the context array labels instead of values for use in token suggestions.

@param bool $sort

@return array
Get the context array labels instead of values for use in token suggestions .