summaryrefslogtreecommitdiff
path: root/demos/time-tracker/protected/App_Code/DateTimeMySQL.php
blob: 19f41c03ad2377709897a5763e8b507214ee1ff5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php

class DateTimeMySQL implements ITypeHandlerCallback
{
	/**
	 * Not implemented.
	 */
	public function getParameter($integer)
	{
		return date('Y-m-d H:i:s', $integer);
	}

	/**
	 * Not implemented.
	 */
	public function getResult($string)
	{
		return strtotime($string);		
	}

	/**
	 * Creates a new instance of TimeTrackerUser
	 * @param array result data
	 * @return TimeTrackerUser new user instance
	 */
	public function createNewInstance($row=null)
	{
		throw new TimeTrackerException('Not implemented');
	}
	
}

?>