public function __construct($tokenRecord = null) { $this->record = new Placid_TokenRecord(); $this->model = new Placid_TokenModel(); $this->tokenRecord = $tokenRecord; if (is_null($this->tokenRecord)) { $this->tokenRecord = Placid_TokenRecord::model(); } }
/** * Delete access token from the database. * * @param int $id * @return int The number of rows affected */ public function deleteTokenById($id) { return Placid_TokenRecord::model()->deleteByPk($id); }