Subversion Repositories oidplus

Compare Revisions

Regard whitespace Rev 978 → Rev 979

/trunk/includes/classes/OIDplusObject.class.php
372,7 → 372,7
 
// Get parent gives the next possible parent which is EXISTING in OIDplus
// It does not give the immediate parent
public function getParent() {
public function getParent()/*: ?OIDplusObject*/ {
if (!OIDplus::baseConfig()->getValue('OBJECT_CACHING', true)) {
$res = OIDplus::db()->query("select parent from ###objects where id = ?", array($this->nodeId()));
if (!$res->any()) return null;
400,10 → 400,9
$cur = $cur->one_up();
if (!$cur) return null;
} while ($prev != $cur);
 
}
return null;
}
}
 
public function getRaMail() {
if (!OIDplus::baseConfig()->getValue('OBJECT_CACHING', true)) {