Pop\Db\Db::adapter PHP 메소드

adapter() 공개 메소드

Get the database adapter.
public adapter ( ) : mixed
리턴 mixed
    public function adapter()
    {
        return $this->adapter;
    }

Usage Example

예제 #1
0
 /**
  * Quote the value with single quotes
  *
  * @param  string $value
  * @return string
  */
 public function quote($value)
 {
     if ($value != '?' && substr($value, 0, 1) != ':' && preg_match('/^\\$\\d*\\d$/', $value) == 0 && !is_int($value) && !is_float($value)) {
         $value = "'" . $this->db->adapter()->escape($value) . "'";
     }
     return $value;
 }