/** * @todo: change this to a simple $my->authorise * @param type $processFunc * @param type $wallId * @return type */ public static function isEditable($processFunc, $wallId) { $func = explode(',', $processFunc); if (count($func) < 2) { return false; } $controller = $func[0]; $method = 'edit' . $func[1] . 'Wall'; if (count($func) > 2) { //@todo: plugins } return CWall::_callFunction($controller, $method, array($wallId)); }