67 $args = func_get_args();
71 if (!is_array($args[0])) {
73 foreach (array(
'caption',
'name',
'value',
'rows',
'cols',
'hiddentext') as $key) {
74 if (isset($args[
$i])) {
85 $vars = get_class_vars(__CLASS__);
87 $method =
"set" . ucfirst($key);
88 if (method_exists($this, $method)) {
91 if (array_key_exists(
"_{$key}", $vars)) {
92 $this->{
"_{$key}"} = $val;
94 if (array_key_exists($key, $vars)) {
97 $this->configs[$key] = $val;
110 $this->isEnabled =
true;
120 foreach (
$options as $key => $val) {
170 if (!isset($instance)) {
172 $instance =
new $class();
185 public function get(
$name =
'',
$options = null, $noHtml =
false, $OnFailure =
'')
190 $list = array_keys($this->
getList($noHtml));
191 if (empty($OnFailure) || !in_array($OnFailure, $list)) {
192 $OnFailure = $list[0];
207 $fileList = XoopsLists::getDirListAsArray($this->root_path .
'/');
209 foreach ($fileList as $item) {
223 $list[$item] = array(
'title' =>
$config[
'title'],
'nohtml' =>
$config[
'nohtml']);
226 array_multisort($order, $list);
237 $list =
$xoops->cache()->cacheRead(
239 array($this,
'buildEditorList')
242 if (!empty($this->allowed_editors)) {
245 $returnList = array();
247 if (!empty($noHtml) && empty($list[$name][
'nohtml'])) {
279 $editor_path = $this->root_path .
'/' .
$name;
static getLegacyLanguage()
setConfig(XoopsEditor $editor, $options)
if(!isset($xoops->paths[$path_type])) if($path_type== 'var') $file
_loadEditor($name, $options=null)
setAttribute($name, $value=null)
const CACHE_KEY_EDITOR_LIST