Server : Apache System : Linux indy02.toastserver.com 3.10.0-962.3.2.lve1.5.85.el7.x86_64 #1 SMP Thu Apr 18 15:18:36 UTC 2024 x86_64 User : palandch ( 1163) PHP Version : 7.1.33 Disable Function : NONE Directory : /home/palandch/www/core/model/modx/processors/element/chunk/ |
<?php require_once (dirname(dirname(__FILE__)).'/create.class.php'); /** * Creates a chunk. * * @param string $name The name of the chunk. * @param string $description (optional) The description of the chunk. * @param integer $category The category the chunk is assigned to. * @param string $snippet The code of the chunk. * @param boolean $locked Whether or not the chunk can only be accessed by * administrators. * @param json $propdata A json array of properties to store. * * @package modx * @subpackage processors.element.chunk */ class modChunkCreateProcessor extends modElementCreateProcessor { public $classKey = 'modChunk'; public $languageTopics = array('chunk','category','element'); public $permission = 'new_chunk'; public $objectType = 'chunk'; public $beforeSaveEvent = 'OnBeforeChunkFormSave'; public $afterSaveEvent = 'OnChunkFormSave'; } return 'modChunkCreateProcessor';