| Conditions | 3 | 
| Paths | 4 | 
| Total Lines | 23 | 
| Code Lines | 12 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 2 | ||
| Bugs | 1 | Features | 0 | 
| 1 | <?php  | 
            ||
| 38 | public function render($_viewFile_, $_data_, $_return_ = false)  | 
            ||
| 39 | 	{ | 
            ||
| 40 | // we use special variable names here to avoid conflict when extracting data  | 
            ||
| 41 | if (is_array($_data_))  | 
            ||
| 42 | 		{ | 
            ||
| 43 | extract($_data_, EXTR_PREFIX_SAME, 'data');  | 
            ||
| 44 | }  | 
            ||
| 45 | else  | 
            ||
| 46 | 		{ | 
            ||
| 47 | $data = $_data_;  | 
            ||
| 48 | }  | 
            ||
| 49 | if ($_return_)  | 
            ||
| 50 | 		{ | 
            ||
| 51 | ob_start();  | 
            ||
| 52 | ob_implicit_flush(false);  | 
            ||
| 53 | require($_viewFile_);  | 
            ||
| 54 | return ob_get_clean();  | 
            ||
| 55 | }  | 
            ||
| 56 | else  | 
            ||
| 57 | 		{ | 
            ||
| 58 | require($_viewFile_);  | 
            ||
| 59 | }  | 
            ||
| 60 | }  | 
            ||
| 61 | |||
| 63 |