예제 #1
0
파일: api.php 프로젝트: ValpHusky/dobermann
* @category   Dogger-core Framework Basics 
* @author     Sergio Gómez <*****@*****.**>
* @copyright  2014-2015 Sergio Gómez
* @version    1.0
* @license    http://www.gnu.org/licenses/gpl-2.0.txt
* @link       http://www.dogger.sergio.im Dogger Project
* @since      File available since Release 1.0
*/
/**
 *  THIS IS AN EXAMPLE FILE FOR IMPLEMENTING DOBERMANN SYSTEM
 * 
 */
include_once 'dobermann.php';
/*
DOBERMANN::USER("carlos", "mipassword")->register();
echo DOBERMANN::USER()->getExpire(DATE_RFC1036);
*/
$b = DOBERMANN::INFOBLOCK("datos");
$b->setField("address");
$b->setField("email");
$b->setField("phone");
$b->create(TRUE);
/*
DOBERMANN::USER()->setInfoBlock("datos", Array("email"=>"*****@*****.**"));
DOBERMANN::USER()->setInfoBlock("datos", Array("email"=>"*****@*****.**"));
echo DOBERMANN::USER()->getInfoBlock("datos", "email");
DOBERMANN::USER()->setRole(2);
echo DOBERMANN::USER()->getRole();
DOBERMANN::USER()->destroy();
DOBERMANN::USER("lalo","landa")->register();
*/