mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Related: https://github.com/octobercms/october/issues/5272 & https://github.com/skydiver/october-plugin-forms/issues/213
Somewhat related (not fixed by this commit though): 80aab47f04 (commitcomment-42223643)
30 lines
770 B
PHP
30 lines
770 B
PHP
<?php namespace Cms\Classes;
|
|
|
|
/**
|
|
* The CMS partial class.
|
|
*
|
|
* @package october\cms
|
|
* @author Alexey Bobkov, Samuel Georges
|
|
*/
|
|
class Partial extends CmsCompoundObject
|
|
{
|
|
/**
|
|
* @var string The container name associated with the model, eg: pages.
|
|
*/
|
|
protected $dirName = 'partials';
|
|
|
|
/**
|
|
* @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'];
|
|
|
|
/**
|
|
* Returns name of a PHP class to us a parent for the PHP class created for the object's PHP section.
|
|
* @return string Returns the class name.
|
|
*/
|
|
public function getCodeClassParent()
|
|
{
|
|
return PartialCode::class;
|
|
}
|
|
}
|