コード例 #1
0
ファイル: mimemagics.php プロジェクト: raeldc/nooku-server
 public function __construct($config = array())
 {
     parent::__construct($config);
     if ($config->load_data) {
         $this->addRows(self::$default, $config->new);
     }
 }
コード例 #2
0
ファイル: table.php プロジェクト: ravenlife/Ninja-Framework
 /**
  * Constructor
  *
  * @param 	object 	An optional KConfig object with configuration options.
  */
 public function __construct(KConfig $config = null)
 {
     parent::__construct($config);
     // Set the table indentifier.
     if (isset($config->table)) {
         $this->setTable($config->table);
     }
 }
コード例 #3
0
 /**
  * Constructor
  *
  * @param 	object 	An optional KConfig object with configuration options.
  */
 public function __construct(KConfig $config = null)
 {
     parent::__construct($config);
     $this->_table = $config->table;
     // Reset the rowset
     $this->reset();
     // Insert the data, if exists
     if (!empty($config->data)) {
         $this->addData($config->data->toArray(), $config->new);
     }
 }
コード例 #4
0
ファイル: twitters.php プロジェクト: kedweber/com_social
 public function __construct(KConfig $config)
 {
     $config->append(array('identitiy_columns' => 'id'));
     parent::__construct($config);
 }