winter/modules/cms/classes/Content.php

23 lines
510 B
PHP
Raw Normal View History

2014-05-14 23:24:20 +10:00
<?php namespace Cms\Classes;
/**
* The CMS content file class.
*
* @package october\cms
* @author Alexey Bobkov, Samuel Georges
*/
class Content extends CmsObject
{
protected static $allowedExtensions = ['htm', 'txt', 'md'];
/**
* 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 'content';
}
}