You are here

abstract function RealisticDummyContentEnvironment::_file_get_contents_ in Realistic Dummy Content 7

Internal function used to get the contents of a file.

Wrapper around PHP's file_get_contents() (or a simulation thereof). This function will not return an exception. Please use RealisticDummyContentEnvironment:: file_get_contents(), instead.

Parameters

$filename: A valid filename, for example /drupal/root/sites/all/modules/your_module/realistic_dummy_content/fields/node/blog/body/03.txt

Return value

Undefined in case the filename is invalid; otherwise returns the contents of the file.

1 call to RealisticDummyContentEnvironment::_file_get_contents_()
RealisticDummyContentEnvironment::file_get_contents in api/includes/RealisticDummyContentEnvironment.inc
Get the contents of a file.
2 methods override RealisticDummyContentEnvironment::_file_get_contents_()
RealisticDummyContentDummyEnvironment::_file_get_contents_ in api/includes/RealisticDummyContentDummyEnvironment.inc
Internal function used to get the contents of a file.
RealisticDummyContentLiveEnvironment::_file_get_contents_ in api/includes/RealisticDummyContentLiveEnvironment.inc
Internal function used to get the contents of a file.

File

api/includes/RealisticDummyContentEnvironment.inc, line 88
Define RealisticDummyContentLiveEnvironment autoload class.

Class

RealisticDummyContentEnvironment
The abstract base environment.

Code

abstract function _file_get_contents_($filename);