public function getBlockedWords($search = ''){
        $where = array();
        if(!empty($search)){
            $where['word'] = array('LIKE', '%'.$search.'%');
        }
        $this->blockedWords = $this->db->selectAll($this->getBannedWordsTable(), $where);
        return $this->blockedWords;
    }
public function getBlockedWords($search = ''){
        $where = array();
        if(!empty($search)){
            $where['word'] = array('LIKE', '%'.$search.'%');
        }
        $this->blockedWords = $this->db->selectAll($this->getBannedWordsTable(), $where);
        return $this->blockedWords;
    }
public function getBlockedWords ( $ search = '' ) { $ where = array ( ) ; if ( ! empty ( $ search ) ) { $ where [ 'word' ] = array ( 'LIKE' , '%' . $ search . '%' ) ; } $ this -> blockedWords = $ this -> db -> selectAll ( $ this -> getBannedWordsTable ( ) , $ where ) ; return $ this -> blockedWords ; }
Lists all of the blocked words within the database
@param string $search If you want to search for any words within the blocked list enter a string here
@return array|boolean If blocked words exist returns array else returns false
Lists all of the blocked words within the database