create() публичный статический Метод

public static create ( boolean $initialise = true ) : static
$initialise boolean
Результат static
Пример #1
0
 public function getEntry($create = false)
 {
     if (!$this->_entry && $create) {
         $this->_entry = models\AuditEntry::create(true);
     }
     return $this->_entry;
 }
Пример #2
0
 /**
  * @param bool $create
  * @return models\AuditEntry|static
  */
 public function getEntry($create = false)
 {
     if (!$this->_entry && $create) {
         $this->_entry = models\AuditEntry::create(true);
         $this->callProviderQueue('record');
     }
     return $this->_entry;
 }
Пример #3
0
 /**
  * @param bool $create
  * @param bool $new
  * @return AuditEntry|static
  */
 public function getEntry($create = false, $new = false)
 {
     if (!$this->_entry && $create || $new) {
         $this->_entry = AuditEntry::create(true);
     }
     return $this->_entry;
 }
Пример #4
0
 /**
  * @param bool $create
  * @param bool $new
  * @return AuditEntry|static
  */
 public function getEntry($create = false, $new = false)
 {
     $entry = new AuditEntry();
     $tableSchema = $entry->getDb()->schema->getTableSchema($entry->tableName());
     if ($tableSchema) {
         if (!$this->_entry && $create || $new) {
             $this->_entry = AuditEntry::create(true);
         }
     }
     return $this->_entry;
 }