2014-05-14 13:24:20 +00:00
|
|
|
<?php namespace Cms\Classes;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The CMS partial class.
|
|
|
|
|
*
|
|
|
|
|
* @package october\cms
|
|
|
|
|
* @author Alexey Bobkov, Samuel Georges
|
|
|
|
|
*/
|
|
|
|
|
class Partial extends CmsCompoundObject
|
|
|
|
|
{
|
|
|
|
|
/**
|
2016-03-12 04:32:16 +00:00
|
|
|
* @var string The container name associated with the model, eg: pages.
|
2014-05-14 13:24:20 +00:00
|
|
|
*/
|
2016-03-12 04:32:16 +00:00
|
|
|
protected $dirName = 'partials';
|
2014-10-30 05:12:42 +00:00
|
|
|
|
2021-03-11 10:16:57 +00:00
|
|
|
/**
|
|
|
|
|
* @var array Allowable file extensions. TEMPORARY! DO NOT INCLUDE in Build 1.1.x, workaround for unsupported code
|
|
|
|
|
*/
|
|
|
|
|
protected $allowedExtensions = ['htm', 'html', 'css', 'js', 'svg'];
|
|
|
|
|
|
2014-10-30 05:12:42 +00:00
|
|
|
/**
|
|
|
|
|
* Returns name of a PHP class to us a parent for the PHP class created for the object's PHP section.
|
2015-10-16 14:30:26 +00:00
|
|
|
* @return string Returns the class name.
|
2014-10-30 05:12:42 +00:00
|
|
|
*/
|
|
|
|
|
public function getCodeClassParent()
|
|
|
|
|
{
|
2018-01-12 06:23:20 +00:00
|
|
|
return PartialCode::class;
|
2014-10-30 05:12:42 +00:00
|
|
|
}
|
2014-05-14 13:24:20 +00:00
|
|
|
}
|