roundcubemail/plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php
public function list_rules()
    {
        $result = array();
        $i      = 1;

        foreach ($this->script as $idx => $filter) {
            if (empty($filter['actions'])) {
                continue;
            }
            $fname = $filter['name'] ?: "#$i";
            $result[] = array(
                'id'    => $idx,
                'name'  => $fname,
                'class' => $filter['disabled'] ? 'disabled' : '',
            );
            $i++;
        }

        return $result;
    }
public function list_rules()
    {
        $result = array();
        $i      = 1;

        foreach ($this->script as $idx => $filter) {
            if (empty($filter['actions'])) {
                continue;
            }
            $fname = $filter['name'] ?: "#$i";
            $result[] = array(
                'id'    => $idx,
                'name'  => $fname,
                'class' => $filter['disabled'] ? 'disabled' : '',
            );
            $i++;
        }

        return $result;
    }
public function list_rules ( ) { $ result = array ( ) ; $ i = 1 ; foreach ( $ this -> script as $ idx => $ filter ) { if ( empty ( $ filter [ 'actions' ] ) ) { continue ; } $ fname = $ filter [ 'name' ] ? : "#$i" ; $ result [ ] = array ( 'id' => $ idx , 'name' => $ fname , 'class' => $ filter [ 'disabled' ] ? 'disabled' : '' , ) ; $ i ++ ; } return $ result ; }
Returns list of rules from the current script

@return array List of rules
Returns list of rules from the current script