mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
23 lines
510 B
PHP
23 lines
510 B
PHP
<?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';
|
|
}
|
|
}
|