API:getPlaceholder
From MODx Wiki
API Function Definition:
getPlaceholder
- Versions
- > 0.9.2
- Return Values
- Success: Contents of placeholder
- Fail: void
- Data Type
- string
- Object Hierarchy
- DocumentParser
string getPlaceholder();
getPlaceholder will return the content contained in the placeholder: $name.
[edit]
Examples
$pagetitle = $modx->getPlaceholder('jobtitle');
[edit]
Related functions
[edit]
Function source
| File: | manager/includes/document.parser.class.inc.php |
|---|---|
| Line: | 1930 |
function getPlaceholder($name) { return $this->placeholders[$name]; }
