| Conditions | 4 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 13 | public function getParentTexte($parent) { |
||
| 14 | $dbc = \core\App::getDb(); |
||
| 15 | |||
| 16 | $query = $dbc->select("titre")->from("page")->where("ID_page", "=", $parent)->get(); |
||
| 17 | |||
| 18 | if ((is_array($query)) && (count($query) > 0)) { |
||
| 19 | foreach ($query as $obj) $this->parent_texte = $obj->titre; |
||
| 20 | } |
||
| 21 | |||
| 22 | return $this->parent_texte; |
||
| 23 | } |
||
| 24 | //-------------------------- END GETTER ----------------------------------------------------------------------------// |
||
| 30 | } |