1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-13 02:04:35 +02:00

Various unrelated minor updates to numerous classes/files (phpdoc, typo fixes, and related)

This commit is contained in:
Ryan Cramer
2019-11-21 11:25:58 -05:00
parent efb8f1f2e9
commit 8455e497b7
11 changed files with 58 additions and 21 deletions

View File

@@ -1213,6 +1213,18 @@ class Pagefile extends WireData {
return isset($this->extras[$name]) ? $this->extras[$name] : null;
}
/**
* Ensures that isset() and empty() work for dynamic class properties
*
* @param string $key
* @return bool
*
*/
public function __isset($key) {
if(parent::__isset($key)) return true;
return $this->get($key) !== null;
}
/**
* Debug info
*

View File

@@ -235,7 +235,7 @@ class TemplateFile extends WireData {
}
/**
* Render the template -- execute it and return it's output
* Render the template -- execute it and return its output
*
* @return string The output of the Template File
* @throws WireException if template file doesn't exist