| 1 | <?php |
||
| 10 | class Intraface_Controller_Login extends k_Component |
||
| 11 | { |
||
| 12 | protected $template; |
||
| 13 | protected $kernel; |
||
| 14 | protected $auth; |
||
| 15 | protected $mdb2; |
||
| 16 | |||
| 17 | function __construct(k_TemplateFactory $template, Intraface_Auth $auth, MDB2_Driver_Common $mdb2, Intraface_Log $log) |
||
| 24 | |||
| 25 | function execute() |
||
| 30 | |||
| 31 | function renderHtml() |
||
| 37 | |||
| 38 | function postForm() |
||
| 49 | |||
| 50 | protected function selectUser($username, $password) |
||
| 63 | } |
||
| 64 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: