forked from NetCommons3/NetCommons
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNetCommonsTimeHelper.php
More file actions
46 lines (40 loc) · 1.11 KB
/
NetCommonsTimeHelper.php
File metadata and controls
46 lines (40 loc) · 1.11 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
<?php
/**
* NetCommonsTimeHelper
*
* @author Ryuji AMANO <ryuji@ryus.co.jp>
* @link http://www.netcommons.org NetCommons Project
* @license http://www.netcommons.org/license.txt NetCommons License
*/
App::uses('AppHelper', 'View/Helper');
App::uses('NetCommonsTime', 'NetCommons.Utility');
/**
* Class NetCommonsTimeHelper
*/
class NetCommonsTimeHelper extends AppHelper {
/**
* @var NetCommonsTime NetCommonsTimeのインスタンス
*/
protected $_netCommonsTime = null;
/**
* コンストラクタ
*
* @param View $View The View this helper is being attached to.
* @param array $settings Configuration settings for the helper.
* @return NetCommonsTimeHelper
*/
public function __construct(View $View, $settings = array()) {
$this->_netCommonsTime = new NetCommonsTime();
parent::__construct($View, $settings);
}
/**
* NetCommonsTime ラップ用マジックメソッド。
*
* @param string $method メソッド
* @param array $params パラメータ
* @return mixed
*/
public function __call($method, $params) {
return call_user_func_array(array($this->_netCommonsTime, $method), $params);
}
}