1 | <?php |
||
21 | class Sample4Model extends \Risoluto\RisolutoModelBase |
||
22 | { |
||
23 | /** |
||
24 | * begin() |
||
25 | * |
||
26 | * モデルの初期処理を行う |
||
27 | * |
||
28 | * @access public |
||
29 | * |
||
30 | * @param void |
||
31 | * |
||
32 | * @return 処理結果(true: 成功 / false: 失敗) |
||
|
|||
33 | */ |
||
34 | public function begin() |
||
35 | { |
||
36 | // コンフィグから接続情報を取得する |
||
37 | $db_conf = new \Risoluto\Conf; |
||
38 | $db_conf->parse( RISOLUTO_CONF . 'risoluto_db.ini' ); |
||
39 | |||
40 | // DBへ接続する |
||
41 | return $this->db->connect( $db_conf->getIni( 'DB' ) ); |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * getAll() |
||
46 | * |
||
47 | * テーブル中の全データを取得する |
||
48 | * |
||
49 | * @access public |
||
50 | * |
||
51 | * @param void |
||
52 | * |
||
53 | * @return string テーブル中の全データ |
||
54 | */ |
||
55 | public function getAll() |
||
59 | |||
60 | /** |
||
61 | * end() |
||
62 | * |
||
63 | * モデルの最終処理を行う |
||
64 | * |
||
65 | * @access public |
||
66 | * |
||
67 | * @param void |
||
68 | * |
||
69 | * @return void なし |
||
70 | */ |
||
71 | public function end() |
||
76 | } |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.