コード例 #1
0
 public function __construct(array $roles, $name, $callback, $description, $dataType)
 {
     parent::__construct($name, $callback, $description, $dataType);
     $this->roles = $roles;
 }
コード例 #2
0
 /**
  * {@inheritdoc}
  */
 public function rolesForFilter(Filter $filter, $pathPrefix)
 {
     $roles = [$this->roleName($pathPrefix, 'filter', $filter->getName()), $this->roleName($pathPrefix, 'filter', 'all')];
     return $this->makeRoles($roles);
 }