/** * Constructor. * * @param string $name Name of the attribute * @param int $flags Flags for the attribute * @param array $options CKEditor configuration options */ public function __construct($name, $flags = 0, $options = []) { $this->ckOptions['language'] = Language::getLanguage(); $this->ckOptions['wsc_lang'] = $this->ckOptions['scayt_sLang'] = Tools::atktext('locale'); $this->ckOptions = array_merge($this->ckOptions, Config::getGlobal('ck_options'), $options); parent::__construct($name, $flags); }
/** * Constructor. * * @param string $name Name of the attribute * @param int $flags Flags for this attribute * @param string $filename The name of the file to read/write. * Advanced use: This may be a template containing * fields from your class, for example: * "somedir/textfile_[id].txt". If a record has id '9', * this will read/write a file named * somedir/textfile_9.txt. Watch out when using fields * that can change; the attribute won't remove the old * files. */ public function __construct($name, $flags = 0, $filename) { $this->m_filename = $filename; parent::__construct($name, $flags); }