describeType($obj->getSchema()); $td = $fulltd->listFields(); $langs = $obj->getAllLanguages(); $combine = array(array('min', 'max')); $c .= '
" . elgg_view('koolielu/ke_review_object', array('action' => 'waramu/reviewPending', 'resourceid' => $obj->uid)) . "
"; } // previous comments if (isloggedin()) { //TODO refactor! $resource_owner = waramu_getResourceOwner($obj); // resource owner can see all comments, others only public ones $logged_in_user = get_loggedin_user()->getGUID(); if ($resource_owner && ($resource_owner == $logged_in_user)) { $comments = get_data("SELECT * FROM {$CONFIG->dbprefix}koolielu_waramu_comments WHERE waramu_id='$obj->uid' ORDER BY time"); } else { $comments = get_data("SELECT * FROM {$CONFIG->dbprefix}koolielu_waramu_comments WHERE waramu_id='$obj->uid' and is_public=1 ORDER BY time"); } } else { $comments = get_data("SELECT * FROM {$CONFIG->dbprefix}koolielu_waramu_comments WHERE waramu_id='$obj->uid' and is_public=1 ORDER BY time"); } foreach($comments as $comment) { $c .= elgg_view('annotation/resource_comment', array('resourceid' => $rid, 'comment' => $comment, 'wr' => $obj)); } // add comment form if (isloggedin() ) { $comment_area = "" . elgg_view('input/hidden', array('internalname' => 'resourceid', 'value' => $obj->uid)) . elgg_view('input/submit', array('value' => elgg_echo("koolielu:Save"))); $comment_area .= " " . elgg_view('koolielu/ke_reportedcontent'); $comment_area .= "