예제 #1
0
 function __construct($connectionNumber = 0)
 {
     parent::__construct($connectionNumber);
     $this->detailSequenceName = null;
     $this->status = null;
     foreach ($this->getLanguagesId() as $languageId) {
         $this->isVisible[$languageId] = 1;
     }
     $this->addField(new org_glizy_dataAccessDoctrine_SystemField(self::DOCUMENT_ID, Doctrine\DBAL\Types\Type::INTEGER, 10, true, null, null));
     $this->addField(new org_glizy_dataAccessDoctrine_SystemField(self::DOCUMENT_TYPE, Doctrine\DBAL\Types\Type::STRING, 255, false, null, 0, true, false, '', org_glizy_dataAccessDoctrine_DbField::NOT_INDEXED));
     $this->addField(new org_glizy_dataAccessDoctrine_SystemField(self::DOCUMENT_FK_SITE_ID, Doctrine\DBAL\Types\Type::INTEGER, 255, false, null, 0, true, false, '', org_glizy_dataAccessDoctrine_DbField::NOT_INDEXED));
     $this->addField(new org_glizy_dataAccessDoctrine_SystemField(self::DOCUMENT_CREATION_DATE, Doctrine\DBAL\Types\Type::DATETIME, 255, false, null, 0, true, false, '', org_glizy_dataAccessDoctrine_DbField::NOT_INDEXED));
     $this->addField(new org_glizy_dataAccessDoctrine_SystemField(self::DOCUMENT_DETAIL_ID, Doctrine\DBAL\Types\Type::INTEGER, 10, true, null, null));
     $this->addField(new org_glizy_dataAccessDoctrine_SystemField(self::DOCUMENT_DETAIL_FK_DOCUMENT, Doctrine\DBAL\Types\Type::INTEGER, 255, false, null, 0, true, false, '', org_glizy_dataAccessDoctrine_DbField::NOT_INDEXED));
     $this->addField(new org_glizy_dataAccessDoctrine_SystemField(self::DOCUMENT_DETAIL_FK_USER, Doctrine\DBAL\Types\Type::INTEGER, 255, false, null, 0, true, false, '', org_glizy_dataAccessDoctrine_DbField::NOT_INDEXED));
     $this->addField(new org_glizy_dataAccessDoctrine_SystemField(self::DOCUMENT_DETAIL_TRANSLATED, Doctrine\DBAL\Types\Type::INTEGER, 255, false, null, 0, true, false, '', org_glizy_dataAccessDoctrine_DbField::NOT_INDEXED));
     $this->addField(new org_glizy_dataAccessDoctrine_SystemField(self::DOCUMENT_DETAIL_MODIFICATION_DATE, Doctrine\DBAL\Types\Type::DATETIME, 255, false, null, 0, true, false, '', org_glizy_dataAccessDoctrine_DbField::NOT_INDEXED));
     $this->addField(new org_glizy_dataAccessDoctrine_SystemField(self::DOCUMENT_DETAIL_STATUS, Doctrine\DBAL\Types\Type::STRING, 255, false, null, 0, true, false, '', org_glizy_dataAccessDoctrine_DbField::NOT_INDEXED));
     $this->addField(new org_glizy_dataAccessDoctrine_SystemField(self::DOCUMENT_DETAIL_FK_LANGUAGE, Doctrine\DBAL\Types\Type::INTEGER, 10, false, null, 0, true, false, '', org_glizy_dataAccessDoctrine_DbField::NOT_INDEXED));
     $this->addField(new org_glizy_dataAccessDoctrine_SystemField(self::DOCUMENT_DETAIL_IS_VISIBLE, Doctrine\DBAL\Types\Type::INTEGER, 1, false, null, 1, true, false, '', org_glizy_dataAccessDoctrine_DbField::NOT_INDEXED));
     $this->addField(new org_glizy_dataAccessDoctrine_SystemField(self::DOCUMENT_DETAIL_OBJECT, Doctrine\DBAL\Types\Type::TEXT, 255, false, null, 1, true, false, '', org_glizy_dataAccessDoctrine_DbField::NOT_INDEXED));
     if (__Config::get('glizy.dataAccess.document.enableComment')) {
         $this->addField(new org_glizy_dataAccessDoctrine_SystemField(self::DOCUMENT_DETAIL_NOTE, Doctrine\DBAL\Types\Type::TEXT, 255, false, null, 1, true, false, '', org_glizy_dataAccessDoctrine_DbField::NOT_INDEXED));
     }
     if (__Config::get('MULTISITE_ENABLED')) {
         $this->siteField = self::DOCUMENT_FK_SITE_ID;
     }
     if (!self::$indexQueue) {
         self::$indexQueue = new org_glizy_dataAccessDoctrine_IndexQueue($this->connection);
     }
 }
 function __construct($connectionNumber = 0)
 {
     parent::__construct($connectionNumber);
     $this->addField(new org_glizy_dataAccessDoctrine_SystemField(self::DOCUMENT_TABLE_ID, Doctrine\DBAL\Types\Type::INTEGER, 10, true, null, NULL));
     $this->addField(new org_glizy_dataAccessDoctrine_SystemField(self::DOCUMENT_TABLE_TYPE, Doctrine\DBAL\Types\Type::STRING, 255, false, null, 0, true, false, '', org_glizy_dataAccessDoctrine_DbField::NOT_INDEXED));
     if (__Config::get('MULTISITE_ENABLED')) {
         $this->addField(new org_glizy_dataAccessDoctrine_SystemField(self::DOCUMENT_FK_SITE_ID, Doctrine\DBAL\Types\Type::INTEGER, 10, false, null, NULL));
     }
 }
예제 #3
0
 function __construct($connectionNumber = 0)
 {
     parent::__construct($connectionNumber);
     $this->setTableName('entity_properties_tbl');
     $sm = new org_glizy_dataAccessDoctrine_SchemaManager($this->connection);
     $sequenceName = $sm->getSequenceName($this->getTableName());
     $this->setSequenceName($sequenceName);
     $fields = $sm->getFields($this->getTableName());
     foreach ($fields as $field) {
         $this->addField($field);
     }
 }
예제 #4
0
 function __construct($connectionNumber = 0)
 {
     parent::__construct($connectionNumber);
     $this->setTableName('documents_tbl', org_glizy_dataAccessDoctrine_DataAccess::getTablePrefix($connectionNumber));
     $sm = new org_glizy_dataAccessDoctrine_SchemaManager($this->connection);
     $sequenceName = $sm->getSequenceName($this->getTableName());
     $this->setSequenceName($sequenceName);
     $fields = $sm->getFields($this->getTableName());
     foreach ($fields as $field) {
         $this->addField($field);
     }
     $this->addRelation(array('type' => 'joinTable', 'name' => 'rel_aclEdit', 'className' => 'org.glizy.models.JoinDoctrine', 'field' => 'join_FK_source_id', 'destinationField' => 'join_FK_dest_id', 'bindTo' => '__aclEdit', 'objectName' => ''));
     $this->addRelation(array('type' => 'joinTable', 'name' => 'rel_aclView', 'className' => 'org.glizy.models.JoinDoctrine', 'field' => 'join_FK_source_id', 'destinationField' => 'join_FK_dest_id', 'bindTo' => '__aclView', 'objectName' => ''));
     $this->setProcessRelations(true);
 }
예제 #5
0
 function __construct($connectionNumber = 0)
 {
     parent::__construct($connectionNumber);
 }