Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 47 lines (40 sloc) 1.475 kb
<?php
/**
* DataObject For Usercode helper of OpenEvSys.
*
* This file is part of OpenEvsys.
*
* Copyright (C) 2009 Human Rights Information and Documentation Systems,
* HURIDOCS), http://www.huridocs.org/, info@huridocs.org
*
* OpenEvsys is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* OpenEvsys is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* @author Nilushan Silva <nilushan@respere.com>
*
* @package OpenEvsys
* @subpackage DataModel
*
*/
class UserCodeHelper{
public static function deleteFromUserNameFromAction($username,$action){
$userCode = new UserCode();
$userCode->Load("username='" .$username . "' AND action='" . $action . "'");
}
public static function loadForUserNameForAction($username , $action){
$userCode = new UserCode();
$userCode->Load("username='$username' AND action='$action'" );
return $userCode;
}
}
?>
Jump to Line
Something went wrong with that request. Please try again.