Author: XE Team (developers) (developers@xpressengine.com)
Inheritance: implements Xpressengine\Plugin\ComponentInterface, use trait Xpressengine\Plugin\ComponentTrait
Exemplo n.º 1
0
 public function create(ColumnEntity $column)
 {
     parent::create($column);
     XeEditor::setInstance($this->config->get('group') . '_' . $this->config->get('id'), CkEditorComponent::getId());
 }
Exemplo n.º 2
0
 /**
  * @param ConfigEntity $config
  * @param DynamicFieldHandler $handler
  * @param array $args
  * @param array $wheres
  * @throws \Exception
  */
 public function update(array $args, array $wheres)
 {
     $config = $this->config;
     $key = $config->get('dynamicFieldName') . 'Num';
     if (isset($args[$key]) && $args[$key] !== '') {
         // 숫자만 입력 가능 하요~
         if (is_numeric($args[$key]) === false) {
             throw new \Exception();
         }
     }
     parent::update($args, $wheres);
 }