/** * {@inheritDoc} */ public function __construct($cmsObject, $properties, $errorMessage) { $this->errorMessage = $errorMessage; $this->componentCssClass = 'error-component'; $this->inspectorEnabled = false; parent::__construct($cmsObject, $properties); }
/** * RandomImages constructor. * * Get an MediaLibrary instance to work with. * * @param CodeBase|null $cmsObject * @param array $properties */ public function __construct(CodeBase $cmsObject = null, $properties = [], $mediaLibrary = null) { parent::__construct($cmsObject, $properties); $this->mediaLibrary = $mediaLibrary ?: MediaLibrary::instance(); $storagePath = rtrim(Config::get('cms.storage.media.path', '/storage/app/media'), '/'); $this->storagePath = str_replace('/storage', '', $storagePath); }
public function __construct(CodeBase $cmsObject = null, $properties = []) { parent::__construct($cmsObject, $properties); // Remove extra component from end if (ends_with($this->dirName, 'component')) { $this->dirName = substr($this->dirName, 0, -9); } }
/** * TicketForm constructor. * * @param \Cms\Classes\CodeBase $cmsObject * @param array $properties */ public function __construct(\Cms\Classes\CodeBase $cmsObject = null, array $properties = []) { parent::__construct($cmsObject, $properties); $this->helpers = new SupportHelpers(); }
public function __construct(CodeBase $cmsObject = null, $properties = []) { parent::__construct($cmsObject, $properties); }
public function __construct(CodeBase $cmsObject = null, $properties = [], Users $users) { parent::__construct($cmsObject, $properties); $this->users = $users; }