Esempio n. 1
0
 /**
  * Ensures that setCharList() follows expected behavior
  *
  * @return void
  */
 public function testSetCharList()
 {
     $this->_filter->setCharList('&');
     $this->assertEquals('&', $this->_filter->getCharList());
 }
 /**
  * Ensures expected behavior under custom character list
  *
  * @return void
  */
 public function testCharList()
 {
     $this->_filter->setCharList('&');
     $this->assertEquals('a&b', $this->_filter->filter('&&a&b&&'));
 }
Esempio n. 3
0
 public function getAllByPerfil($perfil)
 {
     $rotas = $this->_getRepository('app:PerfilFuncionalidade')->getAllByPerfil($perfil);
     $data = array();
     $filter = new \Zend_Filter_StringTrim();
     $filter->setCharList('/');
     foreach ($rotas as $rota) {
         $data[] = $filter->filter($rota['txRota']);
     }
     return $data;
 }