<?php
 
class Transaction extends AppModel
{
    var $name='Transaction';



    function list($conditions = array() )
    {
        return $this->find('all', array('conditions' => $conditions));
    }

    function add($inputData)
    {
        $result = false;

        if(!empty($inputData))
        {
            $fileds = array();
            $dbData["Transaction"] = $inputData;
            if($this->save($dbData,false,$fileds)){
                $dbData["Transaction"]['id'] = $this->id;
                $result = true;
            }
        }
        return array($result,$dbData["Transaction"]);
    }


}
?>