Exemple #1
0
 public static final function INFOBLOCK($name)
 {
     if (!self::$_BLOCK || self::$_BLOCK->getBlockName() != $name) {
         self::$_BLOCK = new DOBBlock($name);
     }
     return self::$_BLOCK;
 }
Exemple #2
0
 public function __construct($name)
 {
     $this->_child = DOBBlock::CHILD_NAME;
     $this->_name = $name;
     $this->_core = DOBERMANN::CORE();
     $this->_getStructure();
 }
Exemple #3
0
 public function __construct($user = NULL, $psw = NULL, $suser = TRUE)
 {
     $this->_child = DOBUser::CHILD_NAME;
     $this->_core = DOBERMANN::CORE();
     $this->_name = $user;
     $this->_pws = $psw;
     $this->_suser = $suser;
     $this->_sessionInit();
     $this->_validateUser();
 }
Exemple #4
0
* @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();
*/