function deleteComment($app) { $session = Session::getInstance(); $user = User::getInstance(); $kommentariUtils = KommentariUtils::getInstance(); $utils = Utils::getInstance(); $cid = $utils->iStr($app->request()->post('cid'), 255); $res = $kommentariUtils->deleteComment($cid); $err = false == $res ? '' : $session->flushError(); $res = false == $res ? 'false' : 'ok'; $res = array('req' => 'deleteComment', 'res' => $res, 'cid' => $cid); return $res; }
public function __construct() { User::getInstance()->auth('*****@*****.**', 'tenant'); $this->kommentariUtils = KommentariUtils::getInstance(); $this->session = Session::getInstance(); }