Source of file GooglePerformanceChart.php
Size: 0,610 Bytes - Last Modified: 2021-12-23T10:26:58+00:00
/var/www/docs.ssmods.com/process/src/code/GooglePerformanceChart.php
1234567891011121314151617181920212223242526272829 | <?php class GooglePerformanceChart extends Compositefield { protected $page; public function __construct($page = null) { parent::__construct(); switch (true) { case $page instanceof SiteTree: $this->page = $page; break; case is_numeric($page): $page = SiteTree::get()->byID((int)$page); break; } } public function FieldHolder($properties = array()) { return $this->renderWith('GooglePerformanceChart'); } public function PageID() { if ($this->page) { return $this->page->ID; } } } |