src/DataBaseAR.php
protected function like($field, $match, $joker='both', $not=FALSE){
        $this->where.= $field . ' ';
        if($not){$this->where.= 'NOT ';}
        $this->where.= 'LIKE ';
        switch ($joker){
            case 'both':
                 $this->where.= "'%$match%' ";
                break;
            case 'after':
                 $this->where.= "'$match%' ";
                break;
            case 'before':
                 $this->where.= "'%$match' ";
                break;
        }
    }
protected function like($field, $match, $joker='both', $not=FALSE){
        $this->where.= $field . ' ';
        if($not){$this->where.= 'NOT ';}
        $this->where.= 'LIKE ';
        switch ($joker){
            case 'both':
                 $this->where.= "'%$match%' ";
                break;
            case 'after':
                 $this->where.= "'$match%' ";
                break;
            case 'before':
                 $this->where.= "'%$match' ";
                break;
        }
    }
protected function like ( $ field , $ match , $ joker = 'both' , $ not = FALSE ) { $ this -> where .= $ field . ' ' ; if ( $ not ) { $ this -> where .= 'NOT ' ; } $ this -> where .= 'LIKE ' ; switch ( $ joker ) { case 'both' : $ this -> where .= "'%$match%' " ; break ; case 'after' : $ this -> where .= "'$match%' " ; break ; case 'before' : $ this -> where .= "'%$match' " ; break ; } }
Arma el Like para el where and o or
@param string $field
@param string $match
@param string $joker
@param bool $not
Arma el Like para el where and o or