Function RevisionEngineFiles->has_revisions
Definitions
sources/revisions_engine_files.php
- Find if there are revisions of something.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: bool
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $directory | PATH | No | No | required parameter | N/A | N/A | Directory where revisions are stored |
| $filename_id | string | No | No | required parameter | N/A | N/A | ID of what was revised (=base filename, no extension) |
| $ext | string | No | No | required parameter | N/A | N/A | File extension for revisable files |
Returns
- Whether there are revisions
- Type: boolean
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Find if there are revisions of something.
*
* @param PATH $directory Directory where revisions are stored
* @param string $filename_id ID of what was revised (=base filename, no extension)
* @param string $ext File extension for revisable files
* @return boolean Whether there are revisions
*/
public function has_revisions(string $directory, string $filename_id, string $ext) : bool
* Find if there are revisions of something.
*
* @param PATH $directory Directory where revisions are stored
* @param string $filename_id ID of what was revised (=base filename, no extension)
* @param string $ext File extension for revisable files
* @return boolean Whether there are revisions
*/
public function has_revisions(string $directory, string $filename_id, string $ext) : bool

