拡張差し替え値リストを構築します。

@param	string	$rule_name		ルール名
@param	mixed	$value			値
@param	array	$options		オプション
@return	array	拡張差し替え値の配列
343101
public static function GetExtraReplaceValues ($rule_name, $value, array $options) {
		$rule_set = static::GetValidateRuleList()[$rule_name];
		if (!isset($rule_set[2])) {
			return [];
		}

		$rule_set = $rule_set[2];
		if (!is_array($rule_set)) {
			return [];
		}
		foreach ($rule_set as $rule_name => $replacement) {
			$rule_set[$rule_name] = (is_callable($replacement)) ? $replacement($value, $options) : $value;
		}
		return $rule_set;
	}
1269646
public function text($name, $value = null, array $options = [])
    {
        return $this->form->text($name,
                                 $value,
                                 $this->addFormControlClass($this->getFieldOptions($name, $options)));
    }
1246197
public function plainTextarea($name, $value = null, $options = [])
    {
        return parent::textarea($name, $value, $options);
    }
770160
protected function options($name, $value, $param){
        //Si no se completo no se valida
        if(! $this->isComplete($value)){
            return TRUE;
        }
        $params= explode(',', $param);
        $options= "";
        foreach ($params as $option) {
            if($value == $option){
                return TRUE;
            }
            $options.= '"'. $option .'" ';
        }
        $this->add_message($name, 'options', array('options' => $options));
        return FALSE;
    }
581247
protected function renderListBox($name, $value, $options)
    {
        if ($this->renderer->isBootstrapTheme()) {
            Html::addCssClass($options, 'form-control');
        }

        $options['tabindex'] = self::TABINDEX;

        return Html::listBox($name, $value, $this->prepareItems($this->items), $options);
    }
413223
public function checkbox($name, $value = 1, $checked = null, array $options = [])
    {
        $field = $this->form->checkbox($name,
                                       $value,
                                       $checked,
                                       $this->getFieldOptions($name, $options));

        if ((bool)Arr::get($options, 'inline', false)) {
            return '<label class="checkbox-inline">' . $field . Arr::get($options, 'content', '') . '</label>';
        }

        return '<div class="checkbox"><label>' . $field . Arr::get($options, 'content', '') . '</label></div>';
    }
1137472
public function select($name = null, $options = [], $value = null)
    {
        return Select::create()
            ->attributeIf($name, 'name', $this->fieldName($name))
            ->attributeIf($name, 'id', $this->fieldName($name))
            ->options($options)
            ->value($name ? $this->old($name, $value) : $value);
    }
1143163
public function applyFilters($value, $rules = array())
    {
        $valueTO = $this->valueTO->forge($value);
        // loop through all the rules to validate $value.
        foreach ($rules as $rule => $parameter) {
            // skip rules with option as FALSE.
            if ($parameter === false) {
                continue;
            }
            $this->filter->apply($rule, $valueTO, $parameter);

            // loop break.
            if ($valueTO->getBreak()) {
                break;
            }
        }

        return $valueTO;
    }
1373491
public function inputer($name, $value = null, $options = array())
    {
        $data = [
            'input_name' => $name,
            'input_id' => $name,
            'input_value' => $value
        ];
        
        // Check for class
        if (array_key_exists('class', $options)) {
            $data['wrapper_classes'] = $options['class']; // Save value
            unset($options['class']); // Remove key from array
        }
        
        // Check for ID
        if (array_key_exists('id', $options)) {
            $data['input_id'] = $options['id']; // Save value
            unset($options['id']); // Remove key from array
        }
        
        // Check for Label
        if (array_key_exists('label', $options)) {
            $data['label'] = $options['label']; // Save value
            unset($options['label']); // Remove key from array
        }
        
        // Check for Label Class
        if (array_key_exists('label_classes', $options)) {
            $data['label_classes'] = $options['label_classes']; // Save value
            unset($options['label_classes']); // Remove key from array
        }
        
        // Check for Help Text
        if (array_key_exists('help_text', $options)) {
            $data['help_text'] = $options['help_text']; // Save value
            unset($options['help_text']); // Remove key from array
        }
        
        $data['input_options'] = $options; // Remaining options
                
        return view('redminportal::partials.form-input', $data);
    }
761165
protected function buildRuleMessage($ruleName, $rule=null, $default=null, $input=null) {
		if($message = $this->getRuleMessage($ruleName)) {}
		elseif($message = $this->getRegistry()->getMessage($ruleName)) {}
		elseif($rule !== null && $message = $rule->getMessage()) {}
		elseif($default !== null && $message=$default) {}
		elseif($message = $this->getDefaultMessage()) {}
		else $message = ':attribute is not valid.';

		$params = [
			'attribute' => $this->getName(),
		];
		if(is_string($input) || is_numeric($input))
			$params['input'] = $input;
		if($rule instanceof Rule) {
			$params = array_merge($params, get_object_vars($rule));
			$rule->formatParameters($params);
		}

		if($this->getTranslator())
			$message = $this->getTranslator()->trans($message);

		return $this->format($message, $params);
	}
490034
def get_rule_option(self, rule_name_or_id, option_name):
        
        option = self._get_option(rule_name_or_id, option_name)
        return option.value
1295050
public function add($name,$value,$rule){
		$this->request->set_filter($name,$value,$rule);
	}
796240
public static function RemoveRule ($rule_name) {
		$rule_list = static::GetValidateRuleList();
		if ($rule_list->$rule_name === null) {
			throw \ickx\fw2\core\exception\CoreException::RaiseSystemError('存在しないルール名を指定されました。%s', [$rule_name]);
		}
		unset($rule_list[$rule_name]);
		static::SetClassVar('_rule', $rule_list);
	}
1163412
public static function ReplaceRuleMessage ($rule_name, $message) {
		$rule_list = static::GetValidateRuleList();
		if (!Arrays::KeyExists($rule_list, $rule_name)) {
			throw \ickx\fw2\core\exception\CoreException::RaiseSystemError('存在しないルール名を指定されました。%s', [$rule_name]);
		}
		$rule_list[$rule_name][1] = $message;
		static::SetClassVar('_rule', $rule_list);
	}
246517
protected static function _MergeMessageVars ($value, $options) {
		if (is_array($value)) {
			$value = implode(', ', $value);
		} else if (is_null($value)) {
			$value = '';
		}
		$value = [$value];
		if (isset($options['message_options'])) {
			return array_merge($value, $options['message_options']);
		}
		return $value;
	}
934922
protected function applyFilter($name, $value, $options = [])
    {
        // If the filter does not exist, throw an Exception:
        if (!isset($this->filters[$name])) {
            throw new InvalidArgumentException("No filter found by the name of $name");
        }

        $filter = $this->filters[$name];
        if ($filter instanceof Closure) {
            return call_user_func_array($filter, [$value, $options]);
        } else {
            $filter = new $filter;
            return $filter->apply($value, $options);
        }
    }
834280
public function checkbox($name, $value = 1, $checked = null, $options = array())
    {
        return $this->checkable('checkbox', $name, $value, $checked, $options);
    }