Exemplo n.º 1
0
 function &getArrays($field, $usr = null, $db = null)
 {
     static $assoc_ar;
     ob_start();
     if ($db === null) {
         global $JLMS_DB;
         $db =& $JLMS_DB;
     }
     if ($usr === null) {
         global $my;
         $usr = $my->id;
     }
     if (!is_object($assoc_ar[$field])) {
         $assoc_ar[$field] = JLMSCBJoin::_createArrays($field, $usr, $db);
     }
     ob_end_clean();
     return $assoc_ar[$field];
 }