winter/modules/cms/classes/Partial.php
Samuel Georges 9e6d0a660c Simplify visibleViewBag + visibleSettings
hidden -> is_hidden
2015-06-05 17:24:27 +10:00

38 lines
921 B
PHP

<?php namespace Cms\Classes;
/**
* The CMS partial class.
*
* @package october\cms
* @author Alexey Bobkov, Samuel Georges
*/
class Partial extends CmsCompoundObject
{
/**
* @var array These properties will be available as regular properties,
* by looking the settings and viewBag values.
*/
protected $visible = [
'description'
];
/**
* Returns the directory name corresponding to the object type.
* For pages the directory name is "pages", for layouts - "layouts", etc.
* @return string
*/
public static function getObjectTypeDirName()
{
return 'partials';
}
/**
* Returns name of a PHP class to us a parent for the PHP class created for the object's PHP section.
* @return mixed Returns the class name or null.
*/
public function getCodeClassParent()
{
return '\Cms\Classes\PartialCode';
}
}