| 1 | <?php |
||
| 21 | class Post_Util extends \eoxia\Singleton_Util { |
||
| 22 | /** |
||
| 23 | * Le constructeur obligatoirement pour utiliser la classe \eoxia\Singleton_Util |
||
| 24 | * |
||
| 25 | * @return void nothing |
||
| 26 | */ |
||
| 27 | protected function construct() {} |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Est ce que le post est un parent des enfants ? |
||
| 31 | * |
||
| 32 | * @param int $parent_id (test: 10) L'id du post parent. |
||
| 33 | * @param int $children_id (test: 11) L'id du post enfant. |
||
| 34 | * |
||
| 35 | * @return bool true|false |
||
| 36 | */ |
||
| 37 | public static function is_parent( $parent_id, $children_id ) { |
||
| 44 | } |
||
| 45 | } |
||
| 46 |