public static final function INFOBLOCK($name) { if (!self::$_BLOCK || self::$_BLOCK->getBlockName() != $name) { self::$_BLOCK = new DOBBlock($name); } return self::$_BLOCK; }
public function __construct($name) { $this->_child = DOBBlock::CHILD_NAME; $this->_name = $name; $this->_core = DOBERMANN::CORE(); $this->_getStructure(); }
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(); }
* @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(); */