function findBySid($sid) { $skeyCol = $this->getDbAttrName("skey"); $mail = new Sys_Model_Mail_log(); //$select = $this->select()->where("$skeyCol=?",$sid); //echo $select; $mail->find("{$skeyCol}='{$sid}'"); echo $mail->id; if (trim($mail->id) == '') { return false; } return $mail; }
/** * get Singleton Sys_Model_Mail_log * * @return Sys_Model_Mail_log */ public static function getObjectByID($id) { $obj = new Sys_Model_Mail_log(); $obj->find($id); return $obj; }