__construct() public method

constructor
public __construct ( Doctrine_Table | null $table = null, boolean $isNewEntry = false )
$table Doctrine_Table | null a Doctrine_Table object or null, if null the table object is retrieved from current connection
$isNewEntry boolean whether or not this record is transient
Ejemplo n.º 1
0
 /**
  *	Introduces a hook for the init() function. When this model is instantiated, call the init() function.
  *	@param	$table		String		The name of the table to load
  *	@param	$isNewEntry	String		Is this a new table entry?
  *	@return				self
  */
 public function __construct($table = null, $isNewEntry = false)
 {
     parent::__construct($table, $isNewEntry);
     $this->init();
     $this::$_instance = $this;
     return $this;
 }
 public function __construct($table = null, $isNewEntry = false)
 {
     $dbalmm = AgaviContext::getInstance()->getModel("Api_DBALMetaManagerModel", "Api");
     $db = $dbalmm->getCurrentDB();
     Doctrine_Manager::getInstance()->bindComponent($this->get, $db);
     parent::__construct($table, $isNewEntry);
 }
Ejemplo n.º 3
0
 /**
  * Constructor
  *
  * Calls Doctrine_Record::__construct().
  *
  * @param  Doctrine_Table $table
  * @param bool $isNewEntry 
  * @return void
  */
 public function __construct($table = null, $isNewEntry = false)
 {
     parent::__construct($table, $isNewEntry);
 }