PHP 클래스 Kimai_Remote_Database

This was implemented due to the bad maintainability of MySQL and PDO Classes. This class serves as a bridge and currently ONLY for API calls.
저자: Kevin Papst
저자: Alexander Bauer
파일 보기 프로젝트 열기: kimai/kimai

공개 메소드들

메소드 설명
__call ( $fnName, $arguments ) : mixed
__construct ( array $kga, Kimai_Database_Mysql $database ) Kimai_Remote_Database constructor.
expense_create ( array $data ) : integer create exp entry
expense_delete ( integer $id ) : object delete exp entry
expense_edit ( integer $id, array $data ) : object edit exp entry
expense_get ( integer $expId ) : array Returns the data of a certain expense record
get_expense ( integer $id ) : array returns single expense entry as array
get_expenses ( integer $start, integer $end, integer $users = null, $customers = null, $projects = null, $reverse_order = false, $filter_refundable, integer $filterCleared = null, $startRows, $limitRows, $countOnly = false ) : array returns expenses for specific user as multidimensional array

메소드 상세

__call() 공개 메소드

public __call ( $fnName, $arguments ) : mixed
$fnName
$arguments
리턴 mixed

__construct() 공개 메소드

Kimai_Remote_Database constructor.
public __construct ( array $kga, Kimai_Database_Mysql $database )
$kga array
$database Kimai_Database_Mysql

expense_create() 공개 메소드

create exp entry
public expense_create ( array $data ) : integer
$data array
리턴 integer

expense_delete() 공개 메소드

delete exp entry
public expense_delete ( integer $id ) : object
$id integer -> ID of record
리턴 object

expense_edit() 공개 메소드

edit exp entry
public expense_edit ( integer $id, array $data ) : object
$id integer
$data array
리턴 object

expense_get() 공개 메소드

Returns the data of a certain expense record
저자: ob
public expense_get ( integer $expId ) : array
$expId integer
리턴 array the record's data as array, false on failure

get_expense() 공개 메소드

returns single expense entry as array
저자: sl
public get_expense ( integer $id ) : array
$id integer ID of entry in table exp
리턴 array

get_expenses() 공개 메소드

returns expenses for specific user as multidimensional array
저자: th
저자: Alexander Bauer
public get_expenses ( integer $start, integer $end, integer $users = null, $customers = null, $projects = null, $reverse_order = false, $filter_refundable, integer $filterCleared = null, $startRows, $limitRows, $countOnly = false ) : array
$start integer
$end integer
$users integer ID of user in table users
$filterCleared integer
리턴 array