contributions/binaries/model/classes/binariesdata.model.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * DAO class for Binaries data 00004 * 00005 * @author Gerd Riesselmann 00006 * @ingroup Binaries 00007 */ 00008 class DAOBinariesdata extends DataObjectBase { 00009 public $id_binary; 00010 public $data; 00011 00012 /** 00013 * Create table description 00014 */ 00015 protected function create_table_object() { 00016 return new DBTable( 00017 'binariesdata', 00018 array( 00019 new DBFieldInt('id_binary', null, DBFieldInt::AUTOINCREMENT | DBFieldInt::UNSIGNED | DBFieldInt::NOT_NULL), 00020 new DBFieldBlob('data', DBFieldBlob::BLOB_LENGTH_LARGE, null, DBFieldBlob::NOT_NULL), 00021 ), 00022 'id_binary' 00023 ); 00024 } 00025 }