public function getMyHomes() { $myParents = Kernel::getMyParents(); $myHomes = array(); foreach ($myParents['direct'] as $bu_type => $bu_val) { if (ereg("^BU_(.+)\$", $bu_type) || ereg("^ROOT\$", $bu_type)) { foreach ($bu_val as $bu_id => $level) { $myHomes[] = array('type' => $bu_type, 'id' => $bu_id, 'level' => $level); } } } return $myHomes; }
/** * getLink * * @author Frédéric Mossmann <*****@*****.**> * @todo A faire... */ public function processGetLink() { $tpl = new CopixTpl(); $tpl->assign('TITLE_PAGE', CopixI18N::get('kernel|kernel.message.profil')); $linkedin = Kernel::getMyParents(); foreach ($linkedin["direct"] as $key => $val) { $linkeddata[] = $key . " (" . sizeof($val) . ")"; } $linkedstr = "[ " . implode(" | ", $linkeddata) . " ]"; $tpl->assign('MAIN', "<pre>" . $linkedstr . "</pre>"); return new CopixActionReturn(COPIX_AR_DISPLAY, $tpl); }