Changeset 20774
- Timestamp:
- 08/04/09 22:05:31 (4 years ago)
- Files:
-
- plugins/pkContextCMSPlugin/cmstest/apps/frontend/templates/layout.php (modified) (1 diff)
- plugins/pkContextCMSPlugin/cmstest/lib/filter/doctrine/pkContextCMSPlugin/base/BasepkContextCMSPageFormFilter.class.php (modified) (3 diffs)
- plugins/pkContextCMSPlugin/cmstest/lib/filter/doctrine/pkMediaPlugin/base/BasepkMediaItemFormFilter.class.php (modified) (2 diffs)
- plugins/pkContextCMSPlugin/cmstest/lib/form/doctrine/pkContextCMSPlugin/base/BasepkContextCMSPageForm.class.php (modified) (2 diffs)
- plugins/pkContextCMSPlugin/cmstest/lib/form/doctrine/pkMediaPlugin/base/BasepkMediaItemForm.class.php (modified) (2 diffs)
- plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/pkContextCMSPlugin/base/BasepkContextCMSAccess.class.php (modified) (2 diffs)
- plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/pkContextCMSPlugin/base/BasepkContextCMSArea.class.php (modified) (2 diffs)
- plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/pkContextCMSPlugin/base/BasepkContextCMSAreaVersion.class.php (modified) (2 diffs)
- plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/pkContextCMSPlugin/base/BasepkContextCMSAreaVersionSlot.class.php (modified) (2 diffs)
- plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/pkContextCMSPlugin/base/BasepkContextCMSLuceneUpdate.class.php (modified) (2 diffs)
- plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/pkContextCMSPlugin/base/BasepkContextCMSPage.class.php (modified) (2 diffs)
- plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/pkContextCMSPlugin/base/BasepkContextCMSSlot.class.php (modified) (1 diff)
- plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/pkMediaPlugin/base/BasepkMediaItem.class.php (modified) (2 diffs)
- plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/sfDoctrineActAsTaggablePlugin/base/BaseTag.class.php (modified) (1 diff)
- plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/sfDoctrineActAsTaggablePlugin/base/BaseTagging.class.php (modified) (2 diffs)
- plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/sfDoctrineGuardPlugin/base/BasesfGuardGroup.class.php (modified) (1 diff)
- plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/sfDoctrineGuardPlugin/base/BasesfGuardGroupPermission.class.php (modified) (1 diff)
- plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/sfDoctrineGuardPlugin/base/BasesfGuardPermission.class.php (modified) (1 diff)
- plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/sfDoctrineGuardPlugin/base/BasesfGuardRememberKey.class.php (modified) (1 diff)
- plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/sfDoctrineGuardPlugin/base/BasesfGuardUser.class.php (modified) (1 diff)
- plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/sfDoctrineGuardPlugin/base/BasesfGuardUserGroup.class.php (modified) (1 diff)
- plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/sfDoctrineGuardPlugin/base/BasesfGuardUserPermission.class.php (modified) (1 diff)
- plugins/pkContextCMSPlugin/cmstest/web/css/main.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/pkContextCMSPlugin/cmstest/apps/frontend/templates/layout.php
r19688 r20774 43 43 <div id="pk-content"> 44 44 <?php echo $sf_data->getRaw('sf_content') ?> 45 46 <br class="clear c" /> 47 <?php pk_context_cms_slot("doodoo", 'pkContextCMSImage', array("global" => true, "width" => 125, "height" => 200, "resizeType" => "s", "link" => "/", "defaultImage" => "/pkContextCMSPlugin/images/cmstest-sample-logo.png")) ?> 45 <?php pk_context_cms_slot("sidebar", 'pkContextCMSImage', array("global" => true, "width" => 125, "height" => 200, "resizeType" => "s", "link" => "/", "defaultImage" => "/pkContextCMSPlugin/images/cmstest-sample-logo.png")) ?> 48 46 </div> 49 47 plugins/pkContextCMSPlugin/cmstest/lib/filter/doctrine/pkContextCMSPlugin/base/BasepkContextCMSPageFormFilter.class.php
r16105 r20774 22 22 'author_id' => new sfWidgetFormDoctrineChoice(array('model' => 'sfGuardUser', 'add_empty' => true)), 23 23 'deleter_id' => new sfWidgetFormFilterInput(), 24 'engine' => new sfWidgetFormFilterInput(), 24 25 'created_at' => new sfWidgetFormFilterDate(array('from_date' => new sfWidgetFormDate(), 'to_date' => new sfWidgetFormDate(), 'with_empty' => true)), 25 26 'updated_at' => new sfWidgetFormFilterDate(array('from_date' => new sfWidgetFormDate(), 'to_date' => new sfWidgetFormDate(), 'with_empty' => true)), … … 37 38 'author_id' => new sfValidatorDoctrineChoice(array('required' => false, 'model' => 'sfGuardUser', 'column' => 'id')), 38 39 'deleter_id' => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))), 40 'engine' => new sfValidatorPass(array('required' => false)), 39 41 'created_at' => new sfValidatorDateRange(array('required' => false, 'from_date' => new sfValidatorDate(array('required' => false)), 'to_date' => new sfValidatorDate(array('required' => false)))), 40 42 'updated_at' => new sfValidatorDateRange(array('required' => false, 'from_date' => new sfValidatorDate(array('required' => false)), 'to_date' => new sfValidatorDate(array('required' => false)))), … … 67 69 'author_id' => 'ForeignKey', 68 70 'deleter_id' => 'Number', 71 'engine' => 'Text', 69 72 'created_at' => 'Date', 70 73 'updated_at' => 'Date', plugins/pkContextCMSPlugin/cmstest/lib/filter/doctrine/pkMediaPlugin/base/BasepkMediaItemFormFilter.class.php
r19047 r20774 15 15 { 16 16 $this->setWidgets(array( 17 'type' => new sfWidgetFormChoice(array('choices' => array('' => '', 'image' => 'image', 'video' => 'video', 'audio' => 'audio' ))),17 'type' => new sfWidgetFormChoice(array('choices' => array('' => '', 'image' => 'image', 'video' => 'video', 'audio' => 'audio', 'pdf' => 'pdf'))), 18 18 'service_url' => new sfWidgetFormFilterInput(), 19 19 'format' => new sfWidgetFormFilterInput(), … … 32 32 33 33 $this->setValidators(array( 34 'type' => new sfValidatorChoice(array('required' => false, 'choices' => array('image' => 'image', 'video' => 'video', 'audio' => 'audio' ))),34 'type' => new sfValidatorChoice(array('required' => false, 'choices' => array('image' => 'image', 'video' => 'video', 'audio' => 'audio', 'pdf' => 'pdf'))), 35 35 'service_url' => new sfValidatorPass(array('required' => false)), 36 36 'format' => new sfValidatorPass(array('required' => false)), plugins/pkContextCMSPlugin/cmstest/lib/form/doctrine/pkContextCMSPlugin/base/BasepkContextCMSPageForm.class.php
r19186 r20774 21 21 'author_id' => new sfWidgetFormDoctrineChoice(array('model' => 'sfGuardUser', 'add_empty' => true)), 22 22 'deleter_id' => new sfWidgetFormInput(), 23 'engine' => new sfWidgetFormInput(), 23 24 'created_at' => new sfWidgetFormDateTime(), 24 25 'updated_at' => new sfWidgetFormDateTime(), … … 37 38 'author_id' => new sfValidatorDoctrineChoice(array('model' => 'sfGuardUser', 'required' => false)), 38 39 'deleter_id' => new sfValidatorInteger(array('required' => false)), 40 'engine' => new sfValidatorString(array('max_length' => 255, 'required' => false)), 39 41 'created_at' => new sfValidatorDateTime(array('required' => false)), 40 42 'updated_at' => new sfValidatorDateTime(array('required' => false)), plugins/pkContextCMSPlugin/cmstest/lib/form/doctrine/pkMediaPlugin/base/BasepkMediaItemForm.class.php
r19186 r20774 14 14 $this->setWidgets(array( 15 15 'id' => new sfWidgetFormInputHidden(), 16 'type' => new sfWidgetFormChoice(array('choices' => array('image' => 'image', 'video' => 'video', 'audio' => 'audio' ))),16 'type' => new sfWidgetFormChoice(array('choices' => array('image' => 'image', 'video' => 'video', 'audio' => 'audio', 'pdf' => 'pdf'))), 17 17 'service_url' => new sfWidgetFormInput(), 18 18 'format' => new sfWidgetFormInput(), … … 32 32 $this->setValidators(array( 33 33 'id' => new sfValidatorDoctrineChoice(array('model' => 'pkMediaItem', 'column' => 'id', 'required' => false)), 34 'type' => new sfValidatorChoice(array('choices' => array('image' => 'image', 'video' => 'video', 'audio' => 'audio' ))),34 'type' => new sfValidatorChoice(array('choices' => array('image' => 'image', 'video' => 'video', 'audio' => 'audio', 'pdf' => 'pdf'))), 35 35 'service_url' => new sfValidatorString(array('max_length' => 200, 'required' => false)), 36 36 'format' => new sfValidatorString(array('max_length' => 10, 'required' => false)), plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/pkContextCMSPlugin/base/BasepkContextCMSAccess.class.php
r19047 r20774 9 9 { 10 10 $this->setTableName('pk_context_cms_access'); 11 $this->hasColumn('page_id', 'integer', 4, array('type' => 'integer', 'length' => '4')); 12 $this->hasColumn('privilege', 'string', 100, array('type' => 'string', 'length' => '100')); 13 $this->hasColumn('user_id', 'integer', 4, array('type' => 'integer', 'length' => '4')); 11 $this->hasColumn('page_id', 'integer', 4, array( 12 'type' => 'integer', 13 'length' => '4', 14 )); 15 $this->hasColumn('privilege', 'string', 100, array( 16 'type' => 'string', 17 'length' => '100', 18 )); 19 $this->hasColumn('user_id', 'integer', 4, array( 20 'type' => 'integer', 21 'length' => '4', 22 )); 14 23 15 24 16 $this->index('pageindex', array('fields' => array(0 => 'page_id'))); 25 $this->index('pageindex', array( 26 'fields' => 27 array( 28 0 => 'page_id', 29 ), 30 )); 17 31 $this->option('type', 'INNODB'); 18 32 } … … 20 34 public function setUp() 21 35 { 22 $this->hasOne('sfGuardUser as User', array('local' => 'user_id', 23 'foreign' => 'id', 24 'onDelete' => 'cascade')); 36 $this->hasOne('sfGuardUser as User', array( 37 'local' => 'user_id', 38 'foreign' => 'id', 39 'onDelete' => 'cascade')); 25 40 26 $this->hasOne('pkContextCMSPage as Page', array('local' => 'page_id', 27 'foreign' => 'id', 28 'onDelete' => 'cascade')); 41 $this->hasOne('pkContextCMSPage as Page', array( 42 'local' => 'page_id', 43 'foreign' => 'id', 44 'onDelete' => 'cascade')); 29 45 } 30 46 } plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/pkContextCMSPlugin/base/BasepkContextCMSArea.class.php
r16105 r20774 9 9 { 10 10 $this->setTableName('pk_context_cms_area'); 11 $this->hasColumn('id', 'integer', 4, array('type' => 'integer', 'primary' => true, 'autoincrement' => true, 'length' => '4')); 12 $this->hasColumn('page_id', 'integer', 4, array('type' => 'integer', 'length' => '4')); 13 $this->hasColumn('name', 'string', 100, array('type' => 'string', 'length' => '100')); 14 $this->hasColumn('culture', 'string', 7, array('type' => 'string', 'length' => '7')); 15 $this->hasColumn('latest_version', 'integer', 4, array('type' => 'integer', 'length' => '4')); 11 $this->hasColumn('id', 'integer', 4, array( 12 'type' => 'integer', 13 'primary' => true, 14 'autoincrement' => true, 15 'length' => '4', 16 )); 17 $this->hasColumn('page_id', 'integer', 4, array( 18 'type' => 'integer', 19 'length' => '4', 20 )); 21 $this->hasColumn('name', 'string', 100, array( 22 'type' => 'string', 23 'length' => '100', 24 )); 25 $this->hasColumn('culture', 'string', 7, array( 26 'type' => 'string', 27 'length' => '7', 28 )); 29 $this->hasColumn('latest_version', 'integer', 4, array( 30 'type' => 'integer', 31 'length' => '4', 32 )); 16 33 17 34 18 $this->index('page_index', array('fields' => array(0 => 'page_id'))); 35 $this->index('page_index', array( 36 'fields' => 37 array( 38 0 => 'page_id', 39 ), 40 )); 19 41 $this->option('type', 'INNODB'); 20 42 } … … 22 44 public function setUp() 23 45 { 24 $this->hasOne('pkContextCMSPage as Page', array('local' => 'page_id', 25 'foreign' => 'id', 26 'onDelete' => 'cascade')); 46 $this->hasOne('pkContextCMSPage as Page', array( 47 'local' => 'page_id', 48 'foreign' => 'id', 49 'onDelete' => 'cascade')); 27 50 28 $this->hasMany('pkContextCMSAreaVersion as AreaVersions', array('local' => 'id', 29 'foreign' => 'area_id')); 51 $this->hasMany('pkContextCMSAreaVersion as AreaVersions', array( 52 'local' => 'id', 53 'foreign' => 'area_id')); 30 54 } 31 55 } plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/pkContextCMSPlugin/base/BasepkContextCMSAreaVersion.class.php
r19047 r20774 9 9 { 10 10 $this->setTableName('pk_context_cms_area_version'); 11 $this->hasColumn('id', 'integer', 4, array('type' => 'integer', 'primary' => true, 'autoincrement' => true, 'length' => '4')); 12 $this->hasColumn('area_id', 'integer', 4, array('type' => 'integer', 'length' => '4')); 13 $this->hasColumn('version', 'integer', 4, array('type' => 'integer', 'length' => '4')); 14 $this->hasColumn('author_id', 'integer', 4, array('type' => 'integer', 'length' => '4')); 15 $this->hasColumn('diff', 'string', 200, array('type' => 'string', 'length' => '200')); 11 $this->hasColumn('id', 'integer', 4, array( 12 'type' => 'integer', 13 'primary' => true, 14 'autoincrement' => true, 15 'length' => '4', 16 )); 17 $this->hasColumn('area_id', 'integer', 4, array( 18 'type' => 'integer', 19 'length' => '4', 20 )); 21 $this->hasColumn('version', 'integer', 4, array( 22 'type' => 'integer', 23 'length' => '4', 24 )); 25 $this->hasColumn('author_id', 'integer', 4, array( 26 'type' => 'integer', 27 'length' => '4', 28 )); 29 $this->hasColumn('diff', 'string', 200, array( 30 'type' => 'string', 31 'length' => '200', 32 )); 16 33 17 34 18 $this->index('area_index', array('fields' => array(0 => 'area_id'))); 35 $this->index('area_index', array( 36 'fields' => 37 array( 38 0 => 'area_id', 39 ), 40 )); 19 41 $this->option('type', 'INNODB'); 20 42 } … … 22 44 public function setUp() 23 45 { 24 $this->hasOne('pkContextCMSArea as Area', array('local' => 'area_id', 25 'foreign' => 'id', 26 'onDelete' => 'cascade')); 46 $this->hasOne('pkContextCMSArea as Area', array( 47 'local' => 'area_id', 48 'foreign' => 'id', 49 'onDelete' => 'cascade')); 27 50 28 $this->hasOne('sfGuardUser as Author', array('local' => 'author_id', 29 'foreign' => 'id')); 51 $this->hasOne('sfGuardUser as Author', array( 52 'local' => 'author_id', 53 'foreign' => 'id', 54 'onDelete' => 'SET NULL')); 30 55 31 $this->hasMany('pkContextCMSAreaVersionSlot as AreaVersionSlots', array('local' => 'id', 32 'foreign' => 'area_version_id')); 56 $this->hasMany('pkContextCMSAreaVersionSlot as AreaVersionSlots', array( 57 'local' => 'id', 58 'foreign' => 'area_version_id')); 33 59 34 60 $timestampable0 = new Doctrine_Template_Timestampable(); plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/pkContextCMSPlugin/base/BasepkContextCMSAreaVersionSlot.class.php
r16105 r20774 9 9 { 10 10 $this->setTableName('pk_context_cms_area_version_slot'); 11 $this->hasColumn('slot_id', 'integer', 4, array('type' => 'integer', 'length' => '4')); 12 $this->hasColumn('area_version_id', 'integer', 4, array('type' => 'integer', 'length' => '4')); 13 $this->hasColumn('permid', 'integer', 4, array('type' => 'integer', 'default' => '1', 'length' => '4')); 14 $this->hasColumn('rank', 'integer', 4, array('type' => 'integer', 'default' => '1', 'length' => '4')); 11 $this->hasColumn('slot_id', 'integer', 4, array( 12 'type' => 'integer', 13 'length' => '4', 14 )); 15 $this->hasColumn('area_version_id', 'integer', 4, array( 16 'type' => 'integer', 17 'length' => '4', 18 )); 19 $this->hasColumn('permid', 'integer', 4, array( 20 'type' => 'integer', 21 'default' => '1', 22 'length' => '4', 23 )); 24 $this->hasColumn('rank', 'integer', 4, array( 25 'type' => 'integer', 26 'default' => '1', 27 'length' => '4', 28 )); 15 29 16 30 17 $this->index('area_version_index', array('fields' => array(0 => 'area_version_id'))); 31 $this->index('area_version_index', array( 32 'fields' => 33 array( 34 0 => 'area_version_id', 35 ), 36 )); 18 37 $this->option('type', 'INNODB'); 19 38 } … … 21 40 public function setUp() 22 41 { 23 $this->hasOne('pkContextCMSAreaVersion as AreaVersion', array('local' => 'area_version_id', 24 'foreign' => 'id', 25 'onDelete' => 'cascade')); 42 $this->hasOne('pkContextCMSAreaVersion as AreaVersion', array( 43 'local' => 'area_version_id', 44 'foreign' => 'id', 45 'onDelete' => 'cascade')); 26 46 27 $this->hasOne('pkContextCMSSlot as Slot', array('local' => 'slot_id', 28 'foreign' => 'id', 29 'onDelete' => 'cascade')); 47 $this->hasOne('pkContextCMSSlot as Slot', array( 48 'local' => 'slot_id', 49 'foreign' => 'id', 50 'onDelete' => 'cascade')); 30 51 } 31 52 } plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/pkContextCMSPlugin/base/BasepkContextCMSLuceneUpdate.class.php
r19047 r20774 9 9 { 10 10 $this->setTableName('pk_context_cms_lucene_update'); 11 $this->hasColumn('page_id', 'integer', 4, array('type' => 'integer', 'length' => '4')); 12 $this->hasColumn('culture', 'string', 7, array('type' => 'string', 'length' => '7')); 11 $this->hasColumn('page_id', 'integer', 4, array( 12 'type' => 'integer', 13 'length' => '4', 14 )); 15 $this->hasColumn('culture', 'string', 7, array( 16 'type' => 'string', 17 'length' => '7', 18 )); 13 19 14 20 15 $this->index('page_and_culture_index', array('fields' => array(0 => 'page_id', 1 => 'culture'))); 21 $this->index('page_and_culture_index', array( 22 'fields' => 23 array( 24 0 => 'page_id', 25 1 => 'culture', 26 ), 27 )); 16 28 $this->option('type', 'INNODB'); 17 29 } … … 19 31 public function setUp() 20 32 { 21 $this->hasOne('pkContextCMSPage as Page', array('local' => 'page_id', 22 'foreign' => 'id', 23 'onDelete' => 'cascade')); 33 $this->hasOne('pkContextCMSPage as Page', array( 34 'local' => 'page_id', 35 'foreign' => 'id', 36 'onDelete' => 'cascade')); 24 37 } 25 38 } plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/pkContextCMSPlugin/base/BasepkContextCMSPage.class.php
r16852 r20774 9 9 { 10 10 $this->setTableName('pk_context_cms_page'); 11 $this->hasColumn('id', 'integer', 4, array('type' => 'integer', 'primary' => true, 'autoincrement' => true, 'length' => '4')); 12 $this->hasColumn('slug', 'string', 255, array('type' => 'string', 'unique' => true, 'length' => '255')); 13 $this->hasColumn('template', 'string', 100, array('type' => 'string', 'length' => '100')); 14 $this->hasColumn('is_published', 'boolean', null, array('type' => 'boolean')); 15 $this->hasColumn('view_is_secure', 'boolean', null, array('type' => 'boolean')); 16 $this->hasColumn('archived', 'boolean', null, array('type' => 'boolean')); 17 $this->hasColumn('author_id', 'integer', 4, array('type' => 'integer', 'length' => '4')); 18 $this->hasColumn('deleter_id', 'integer', 4, array('type' => 'integer', 'length' => '4')); 11 $this->hasColumn('id', 'integer', 4, array( 12 'type' => 'integer', 13 'primary' => true, 14 'autoincrement' => true, 15 'length' => '4', 16 )); 17 $this->hasColumn('slug', 'string', 255, array( 18 'type' => 'string', 19 'unique' => true, 20 'length' => '255', 21 )); 22 $this->hasColumn('template', 'string', 100, array( 23 'type' => 'string', 24 'length' => '100', 25 )); 26 $this->hasColumn('is_published', 'boolean', null, array( 27 'type' => 'boolean', 28 )); 29 $this->hasColumn('view_is_secure', 'boolean', null, array( 30 'type' => 'boolean', 31 )); 32 $this->hasColumn('archived', 'boolean', null, array( 33 'type' => 'boolean', 34 )); 35 $this->hasColumn('author_id', 'integer', 4, array( 36 'type' => 'integer', 37 'length' => '4', 38 )); 39 $this->hasColumn('deleter_id', 'integer', 4, array( 40 'type' => 'integer', 41 'length' => '4', 42 )); 43 $this->hasColumn('engine', 'string', 255, array( 44 'type' => 'string', 45 'length' => '255', 46 )); 19 47 20 48 21 $this->index('slugindex', array('fields' => array(0 => 'slug'))); 49 $this->index('slugindex', array( 50 'fields' => 51 array( 52 0 => 'slug', 53 ), 54 )); 55 $this->index('engineindex', array( 56 'fields' => 57 array( 58 0 => 'engine', 59 ), 60 )); 22 61 $this->option('type', 'INNODB'); 23 62 } … … 25 64 public function setUp() 26 65 { 27 $this->hasOne('sfGuardUser as Author', array('local' => 'author_id', 28 'foreign' => 'id')); 66 $this->hasOne('sfGuardUser as Author', array( 67 'local' => 'author_id', 68 'foreign' => 'id')); 29 69 30 $this->hasOne('sfGuardUser as Deleter', array('local' => 'author_id', 31 'foreign' => 'id')); 70 $this->hasOne('sfGuardUser as Deleter', array( 71 'local' => 'author_id', 72 'foreign' => 'id')); 32 73 33 $this->hasMany('pkContextCMSArea as Areas', array('local' => 'id', 34 'foreign' => 'page_id')); 74 $this->hasMany('pkContextCMSArea as Areas', array( 75 'local' => 'id', 76 'foreign' => 'page_id')); 35 77 36 $this->hasMany('pkContextCMSAccess as Accesses', array('local' => 'id', 37 'foreign' => 'page_id')); 78 $this->hasMany('pkContextCMSAccess as Accesses', array( 79 'local' => 'id', 80 'foreign' => 'page_id')); 38 81 39 $this->hasMany('pkContextCMSLuceneUpdate', array('local' => 'id', 40 'foreign' => 'page_id')); 82 $this->hasMany('pkContextCMSLuceneUpdate', array( 83 'local' => 'id', 84 'foreign' => 'page_id')); 41 85 42 86 $timestampable0 = new Doctrine_Template_Timestampable(); plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/pkContextCMSPlugin/base/BasepkContextCMSSlot.class.php
r16876 r20774 9 9 { 10 10 $this->setTableName('pk_context_cms_slot'); 11 $this->hasColumn('id', 'integer', 4, array('type' => 'integer', 'primary' => true, 'autoincrement' => true, 'length' => '4')); 12 $this->hasColumn('type', 'string', 100, array('type' => 'string', 'length' => '100')); 13 $this->hasColumn('value', 'string', null, array('type' => 'string')); 11 $this->hasColumn('id', 'integer', 4, array( 12 'type' => 'integer', 13 'primary' => true, 14 'autoincrement' => true, 15 'length' => '4', 16 )); 17 $this->hasColumn('type', 'string', 100, array( 18 'type' => 'string', 19 'length' => '100', 20 )); 21 $this->hasColumn('value', 'string', null, array( 22 'type' => 'string', 23 )); 14 24 15 25 $this->option('type', 'INNODB'); 16 26 17 $this->setSubClasses(array('pkContextCMSTextSlot' => array('type' => 'pkContextCMSText'), 'pkContextCMSRichTextSlot' => array('type' => 'pkContextCMSRichText'), 'pkContextCMSImageSlot' => array('type' => 'pkContextCMSImage'), 'pkContextCMSSlideshowSlot' => array('type' => 'pkContextCMSSlideshow'), 'pkContextCMSVideoSlot' => array('type' => 'pkContextCMSVideo'))); 27 $this->setSubClasses(array( 28 'pkContextCMSTextSlot' => 29 array( 30 'type' => 'pkContextCMSText', 31 ), 32 'pkContextCMSRichTextSlot' => 33 array( 34 'type' => 'pkContextCMSRichText', 35 ), 36 'pkContextCMSImageSlot' => 37 array( 38 'type' => 'pkContextCMSImage', 39 ), 40 'pkContextCMSSlideshowSlot' => 41 array( 42 'type' => 'pkContextCMSSlideshow', 43 ), 44 'pkContextCMSVideoSlot' => 45 array( 46 'type' => 'pkContextCMSVideo', 47 ), 48 'pkContextCMSMediaBrowserSlot' => 49 array( 50 'type' => 'pkContextCMSMediaBrowser', 51 ), 52 'pkContextCMSPDFSlot' => 53 array( 54 'type' => 'pkContextCMSPDF', 55 ), 56 )); 18 57 } 19 58 20 59 public function setUp() 21 60 { 22 $this->hasMany('pkContextCMSAreaVersionSlot as AreaVersionSlots', array('local' => 'id', 23 'foreign' => 'slot_id')); 61 $this->hasMany('pkContextCMSAreaVersionSlot as AreaVersionSlots', array( 62 'local' => 'id', 63 'foreign' => 'slot_id')); 24 64 } 25 65 } plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/pkMediaPlugin/base/BasepkMediaItem.class.php
r19047 r20774 9 9 { 10 10 $this->setTableName('pk_media_item'); 11 $this->hasColumn('id', 'integer', 4, array('type' => 'integer', 'primary' => true, 'autoincrement' => true, 'length' => '4')); 12 $this->hasColumn('type', 'enum', null, array('type' => 'enum', 'notnull' => true, 'values' => array(0 => 'image', 1 => 'video', 2 => 'audio'))); 13 $this->hasColumn('service_url', 'string', 200, array('type' => 'string', 'length' => '200')); 14 $this->hasColumn('format', 'string', 10, array('type' => 'string', 'length' => '10')); 15 $this->hasColumn('width', 'integer', 4, array('type' => 'integer', 'length' => '4')); 16 $this->hasColumn('height', 'integer', 4, array('type' => 'integer', 'length' => '4')); 17 $this->hasColumn('embed', 'string', 1000, array('type' => 'string', 'length' => '1000')); 18 $this->hasColumn('title', 'string', 200, array('type' => 'string', 'notnull' => true, 'length' => '200')); 19 $this->hasColumn('description', 'string', null, array('type' => 'string')); 20 $this->hasColumn('credit', 'string', 200, array('type' => 'string', 'length' => '200')); 21 $this->hasColumn('owner_id', 'integer', 4, array('type' => 'integer', 'length' => '4')); 22 $this->hasColumn('view_is_secure', 'boolean', null, array('type' => 'boolean', 'notnull' => true, 'default' => false)); 11 $this->hasColumn('id', 'integer', 4, array( 12 'type' => 'integer', 13 'primary' => true, 14 'autoincrement' => true, 15 'length' => '4', 16 )); 17 $this->hasColumn('type', 'enum', null, array( 18 'type' => 'enum', 19 'notnull' => true, 20 'values' => 21 array( 22 0 => 'image', 23 1 => 'video', 24 2 => 'audio', 25 3 => 'pdf', 26 ), 27 )); 28 $this->hasColumn('service_url', 'string', 200, array( 29 'type' => 'string', 30 'length' => '200', 31 )); 32 $this->hasColumn('format', 'string', 10, array( 33 'type' => 'string', 34 'length' => '10', 35 )); 36 $this->hasColumn('width', 'integer', 4, array( 37 'type' => 'integer', 38 'length' => '4', 39 )); 40 $this->hasColumn('height', 'integer', 4, array( 41 'type' => 'integer', 42 'length' => '4', 43 )); 44 $this->hasColumn('embed', 'string', 1000, array( 45 'type' => 'string', 46 'length' => '1000', 47 )); 48 $this->hasColumn('title', 'string', 200, array( 49 'type' => 'string', 50 'notnull' => true, 51 'length' => '200', 52 )); 53 $this->hasColumn('description', 'string', null, array( 54 'type' => 'string', 55 )); 56 $this->hasColumn('credit', 'string', 200, array( 57 'type' => 'string', 58 'length' => '200', 59 )); 60 $this->hasColumn('owner_id', 'integer', 4, array( 61 'type' => 'integer', 62 'length' => '4', 63 )); 64 $this->hasColumn('view_is_secure', 'boolean', null, array( 65 'type' => 'boolean', 66 'notnull' => true, 67 'default' => false, 68 )); 23 69 24 70 $this->option('type', 'INNODB'); … … 27 73 public function setUp() 28 74 { 29 $this->hasOne('sfGuardUser as Owner', array('local' => 'owner_id', 30 'foreign' => 'id', 31 'onDelete' => 'set null')); 75 $this->hasOne('sfGuardUser as Owner', array( 76 'local' => 'owner_id', 77 'foreign' => 'id', 78 'onDelete' => 'set null')); 32 79 33 80 $timestampable0 = new Doctrine_Template_Timestampable(); 34 81 $taggable0 = new Taggable(); 35 $sluggable0 = new Doctrine_Template_Sluggable(array('fields' => array(0 => 'title'), 'unique' => true, 'builder' => 'pkMediaItemTable::slugify')); 82 $sluggable0 = new Doctrine_Template_Sluggable(array( 83 'fields' => 84 array( 85 0 => 'title', 86 ), 87 'unique' => true, 88 'builder' => 'pkMediaItemTable::slugify', 89 )); 36 90 $this->actAs($timestampable0); 37 91 $this->actAs($taggable0); plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/sfDoctrineActAsTaggablePlugin/base/BaseTag.class.php
r16852 r20774 9 9 { 10 10 $this->setTableName('tag'); 11 $this->hasColumn('name', 'string', 100, array('type' => 'string', 'length' => '100')); 12 $this->hasColumn('is_triple', 'boolean', null, array('type' => 'boolean')); 13 $this->hasColumn('triple_namespace', 'string', 100, array('type' => 'string', 'length' => '100')); 14 $this->hasColumn('triple_key', 'string', 100, array('type' => 'string', 'length' => '100')); 15 $this->hasColumn('triple_value', 'string', 100, array('type' => 'string', 'length' => '100')); 11 $this->hasColumn('name', 'string', 100, array( 12 'type' => 'string', 13 'length' => '100', 14 )); 15 $this->hasColumn('is_triple', 'boolean', null, array( 16 'type' => 'boolean', 17 )); 18 $this->hasColumn('triple_namespace', 'string', 100, array( 19 'type' => 'string', 20 'length' => '100', 21 )); 22 $this->hasColumn('triple_key', 'string', 100, array( 23 'type' => 'string', 24 'length' => '100', 25 )); 26 $this->hasColumn('triple_value', 'string', 100, array( 27 'type' => 'string', 28 'length' => '100', 29 )); 16 30 17 31 18 $this->index('name', array('fields' => 'name')); 19 $this->index('triple1', array('fields' => 'triple_namespace')); 20 $this->index('triple2', array('fields' => 'triple_key')); 21 $this->index('triple3', array('fields' => 'triple_value')); 32 $this->index('name', array( 33 'fields' => 'name', 34 )); 35 $this->index('triple1', array( 36 'fields' => 'triple_namespace', 37 )); 38 $this->index('triple2', array( 39 'fields' => 'triple_key', 40 )); 41 $this->index('triple3', array( 42 'fields' => 'triple_value', 43 )); 22 44 } 23 45 24 46 public function setUp() 25 47 { 26 $this->hasMany('Tagging', array('local' => 'id', 27 'foreign' => 'tag_id')); 48 $this->hasMany('Tagging', array( 49 'local' => 'id', 50 'foreign' => 'tag_id')); 28 51 } 29 52 } plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/sfDoctrineActAsTaggablePlugin/base/BaseTagging.class.php
r16852 r20774 9 9 { 10 10 $this->setTableName('tagging'); 11 $this->hasColumn('tag_id', 'integer', null, array('type' => 'integer', 'notnull' => true)); 12 $this->hasColumn('taggable_model', 'string', 30, array('type' => 'string', 'length' => '30')); 13 $this->hasColumn('taggable_id', 'integer', null, array('type' => 'integer')); 11 $this->hasColumn('tag_id', 'integer', null, array( 12 'type' => 'integer', 13 'notnull' => true, 14 )); 15 $this->hasColumn('taggable_model', 'string', 30, array( 16 'type' => 'string', 17 'length' => '30', 18 )); 19 $this->hasColumn('taggable_id', 'integer', null, array( 20 'type' => 'integer', 21 )); 14 22 15 23 16 $this->index('tag', array('fields' => array(0 => 'tag_id'))); 17 $this->index('taggable', array('fields' => array(0 => 'taggable_model', 1 => 'taggable_id'))); 24 $this->index('tag', array( 25 'fields' => 26 array( 27 0 => 'tag_id', 28 ), 29 )); 30 $this->index('taggable', array( 31 'fields' => 32 array( 33 0 => 'taggable_model', 34 1 => 'taggable_id', 35 ), 36 )); 18 37 19 38 $this->setAttribute(Doctrine::ATTR_EXPORT, Doctrine::EXPORT_ALL ^ Doctrine::EXPORT_CONSTRAINTS); … … 22 41 public function setUp() 23 42 { 24 $this->hasOne('Tag', array('local' => 'tag_id', 25 'foreign' => 'id')); 43 $this->hasOne('Tag', array( 44 'local' => 'tag_id', 45 'foreign' => 'id')); 26 46 } 27 47 } plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/sfDoctrineGuardPlugin/base/BasesfGuardGroup.class.php
r16105 r20774 9 9 { 10 10 $this->setTableName('sf_guard_group'); 11 $this->hasColumn('id', 'integer', 4, array('type' => 'integer', 'primary' => true, 'autoincrement' => true, 'length' => '4')); 12 $this->hasColumn('name', 'string', 255, array('type' => 'string', 'unique' => true, 'length' => '255')); 13 $this->hasColumn('description', 'string', 1000, array('type' => 'string', 'length' => '1000')); 11 $this->hasColumn('id', 'integer', 4, array( 12 'type' => 'integer', 13 'primary' => true, 14 'autoincrement' => true, 15 'length' => '4', 16 )); 17 $this->hasColumn('name', 'string', 255, array( 18 'type' => 'string', 19 'unique' => true, 20 'length' => '255', 21 )); 22 $this->hasColumn('description', 'string', 1000, array( 23 'type' => 'string', 24 'length' => '1000', 25 )); 14 26 } 15 27 16 28 public function setUp() 17 29 { 18 $this->hasMany('sfGuardUser as users', array('refClass' => 'sfGuardUserGroup', 19 'local' => 'group_id', 20 'foreign' => 'user_id')); 30 $this->hasMany('sfGuardUser as users', array( 31 'refClass' => 'sfGuardUserGroup', 32 'local' => 'group_id', 33 'foreign' => 'user_id')); 21 34 22 $this->hasMany('sfGuardPermission as permissions', array('refClass' => 'sfGuardGroupPermission', 23 'local' => 'group_id', 24 'foreign' => 'permission_id')); 35 $this->hasMany('sfGuardPermission as permissions', array( 36 'refClass' => 'sfGuardGroupPermission', 37 'local' => 'group_id', 38 'foreign' => 'permission_id')); 25 39 26 $this->hasMany('sfGuardGroupPermission', array('local' => 'id', 27 'foreign' => 'group_id')); 40 $this->hasMany('sfGuardGroupPermission', array( 41 'local' => 'id', 42 'foreign' => 'group_id')); 28 43 29 $this->hasMany('sfGuardUserGroup', array('local' => 'id', 30 'foreign' => 'group_id')); 44 $this->hasMany('sfGuardUserGroup', array( 45 'local' => 'id', 46 'foreign' => 'group_id')); 31 47 32 48 $timestampable0 = new Doctrine_Template_Timestampable(); plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/sfDoctrineGuardPlugin/base/BasesfGuardGroupPermission.class.php
r16105 r20774 9 9 { 10 10 $this->setTableName('sf_guard_group_permission'); 11 $this->hasColumn('group_id', 'integer', 4, array('type' => 'integer', 'primary' => true, 'length' => '4')); 12 $this->hasColumn('permission_id', 'integer', 4, array('type' => 'integer', 'primary' => true, 'length' => '4')); 11 $this->hasColumn('group_id', 'integer', 4, array( 12 'type' => 'integer', 13 'primary' => true, 14 'length' => '4', 15 )); 16 $this->hasColumn('permission_id', 'integer', 4, array( 17 'type' => 'integer', 18 'primary' => true, 19 'length' => '4', 20 )); 13 21 } 14 22 15 23 public function setUp() 16 24 { 17 $this->hasOne('sfGuardGroup', array('local' => 'group_id', 18 'foreign' => 'id', 19 'onDelete' => 'CASCADE')); 25 $this->hasOne('sfGuardGroup', array( 26 'local' => 'group_id', 27 'foreign' => 'id', 28 'onDelete' => 'CASCADE')); 20 29 21 $this->hasOne('sfGuardPermission', array('local' => 'permission_id', 22 'foreign' => 'id', 23 'onDelete' => 'CASCADE')); 30 $this->hasOne('sfGuardPermission', array( 31 'local' => 'permission_id', 32 'foreign' => 'id', 33 'onDelete' => 'CASCADE')); 24 34 25 35 $timestampable0 = new Doctrine_Template_Timestampable(); plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/sfDoctrineGuardPlugin/base/BasesfGuardPermission.class.php
r16105 r20774 9 9 { 10 10 $this->setTableName('sf_guard_permission'); 11 $this->hasColumn('id', 'integer', 4, array('type' => 'integer', 'primary' => true, 'autoincrement' => true, 'length' => '4')); 12 $this->hasColumn('name', 'string', 255, array('type' => 'string', 'unique' => true, 'length' => '255')); 13 $this->hasColumn('description', 'string', 1000, array('type' => 'string', 'length' => '1000')); 11 $this->hasColumn('id', 'integer', 4, array( 12 'type' => 'integer', 13 'primary' => true, 14 'autoincrement' => true, 15 'length' => '4', 16 )); 17 $this->hasColumn('name', 'string', 255, array( 18 'type' => 'string', 19 'unique' => true, 20 'length' => '255', 21 )); 22 $this->hasColumn('description', 'string', 1000, array( 23 'type' => 'string', 24 'length' => '1000', 25 )); 14 26 } 15 27 16 28 public function setUp() 17 29 { 18 $this->hasMany('sfGuardGroup as Groups', array('refClass' => 'sfGuardGroupPermission', 19 'local' => 'permission_id', 20 'foreign' => 'group_id')); 30 $this->hasMany('sfGuardGroup as Groups', array( 31 'refClass' => 'sfGuardGroupPermission', 32 'local' => 'permission_id', 33 'foreign' => 'group_id')); 21 34 22 $this->hasMany('sfGuardGroupPermission', array('local' => 'id', 23 'foreign' => 'permission_id')); 35 $this->hasMany('sfGuardGroupPermission', array( 36 'local' => 'id', 37 'foreign' => 'permission_id')); 24 38 25 $this->hasMany('sfGuardUser as Users', array('refClass' => 'sfGuardUserPermission', 26 'local' => 'permission_id', 27 'foreign' => 'user_id')); 39 $this->hasMany('sfGuardUser as Users', array( 40 'refClass' => 'sfGuardUserPermission', 41 'local' => 'permission_id', 42 'foreign' => 'user_id')); 28 43 29 $this->hasMany('sfGuardUserPermission', array('local' => 'id', 30 'foreign' => 'permission_id')); 44 $this->hasMany('sfGuardUserPermission', array( 45 'local' => 'id', 46 'foreign' => 'permission_id')); 31 47 32 48 $timestampable0 = new Doctrine_Template_Timestampable(); plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/sfDoctrineGuardPlugin/base/BasesfGuardRememberKey.class.php
r16105 r20774 9 9 { 10 10 $this->setTableName('sf_guard_remember_key'); 11 $this->hasColumn('id', 'integer', 4, array('type' => 'integer', 'primary' => true, 'autoincrement' => true, 'length' => '4')); 12 $this->hasColumn('user_id', 'integer', 4, array('type' => 'integer', 'length' => '4')); 13 $this->hasColumn('remember_key', 'string', 32, array('type' => 'string', 'length' => '32')); 14 $this->hasColumn('ip_address', 'string', 50, array('type' => 'string', 'primary' => true, 'length' => '50')); 11 $this->hasColumn('id', 'integer', 4, array( 12 'type' => 'integer', 13 'primary' => true, 14 'autoincrement' => true, 15 'length' => '4', 16 )); 17 $this->hasColumn('user_id', 'integer', 4, array( 18 'type' => 'integer', 19 'length' => '4', 20 )); 21 $this->hasColumn('remember_key', 'string', 32, array( 22 'type' => 'string', 23 'length' => '32', 24 )); 25 $this->hasColumn('ip_address', 'string', 50, array( 26 'type' => 'string', 27 'primary' => true, 28 'length' => '50', 29 )); 15 30 } 16 31 17 32 public function setUp() 18 33 { 19 $this->hasOne('sfGuardUser', array('local' => 'user_id', 20 'foreign' => 'id', 21 'onDelete' => 'CASCADE')); 34 $this->hasOne('sfGuardUser', array( 35 'local' => 'user_id', 36 'foreign' => 'id', 37 'onDelete' => 'CASCADE')); 22 38 23 39 $timestampable0 = new Doctrine_Template_Timestampable(); plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/sfDoctrineGuardPlugin/base/BasesfGuardUser.class.php
r19047 r20774 9 9 { 10 10 $this->setTableName('sf_guard_user'); 11 $this->hasColumn('id', 'integer', 4, array('type' => 'integer', 'primary' => true, 'autoincrement' => true, 'length' => '4')); 12 $this->hasColumn('username', 'string', 128, array('type' => 'string', 'notnull' => true, 'unique' => true, 'length' => '128')); 13 $this->hasColumn('algorithm', 'string', 128, array('type' => 'string', 'default' => 'sha1', 'notnull' => true, 'length' => '128')); 14 $this->hasColumn('salt', 'string', 128, array('type' => 'string', 'length' => '128')); 15 $this->hasColumn('password', 'string', 128, array('type' => 'string', 'length' => '128')); 16 $this->hasColumn('is_active', 'boolean', null, array('type' => 'boolean', 'default' => '1')); 17 $this->hasColumn('is_super_admin', 'boolean', null, array('type' => 'boolean', 'default' => false)); 18 $this->hasColumn('last_login', 'timestamp', null, array('type' => 'timestamp')); 11 $this->hasColumn('id', 'integer', 4, array( 12 'type' => 'integer', 13 'primary' => true, 14 'autoincrement' => true, 15 'length' => '4', 16 )); 17 $this->hasColumn('username', 'string', 128, array( 18 'type' => 'string', 19 'notnull' => true, 20 'unique' => true, 21 'length' => '128', 22 )); 23 $this->hasColumn('algorithm', 'string', 128, array( 24 'type' => 'string', 25 'default' => 'sha1', 26 'notnull' => true, 27 'length' => '128', 28 )); 29 $this->hasColumn('salt', 'string', 128, array( 30 'type' => 'string', 31 'length' => '128', 32 )); 33 $this->hasColumn('password', 'string', 128, array( 34 'type' => 'string', 35 'length' => '128', 36 )); 37 $this->hasColumn('is_active', 'boolean', null, array( 38 'type' => 'boolean', 39 'default' => '1', 40 )); 41 $this->hasColumn('is_super_admin', 'boolean', null, array( 42 'type' => 'boolean', 43 'default' => false, 44 )); 45 $this->hasColumn('last_login', 'timestamp', null, array( 46 'type' => 'timestamp', 47 )); 19 48 20 49 21 $this->index('is_active_idx', array('fields' => array(0 => 'is_active'))); 50 $this->index('is_active_idx', array( 51 'fields' => 52 array( 53 0 => 'is_active', 54 ), 55 )); 22 56 } 23 57 24 58 public function setUp() 25 59 { 26 $this->hasMany('sfGuardGroup as groups', array('refClass' => 'sfGuardUserGroup', 27 'local' => 'user_id', 28 'foreign' => 'group_id')); 60 $this->hasMany('sfGuardGroup as groups', array( 61 'refClass' => 'sfGuardUserGroup', 62 'local' => 'user_id', 63 'foreign' => 'group_id')); 29 64 30 $this->hasMany('sfGuardPermission as permissions', array('refClass' => 'sfGuardUserPermission', 31 'local' => 'user_id', 32 'foreign' => 'permission_id')); 65 $this->hasMany('sfGuardPermission as permissions', array( 66 'refClass' => 'sfGuardUserPermission', 67 'local' => 'user_id', 68 'foreign' => 'permission_id')); 33 69 34 $this->hasMany('pkContextCMSPage', array('local' => 'id', 35 'foreign' => 'author_id')); 70 $this->hasMany('pkContextCMSPage', array( 71 'local' => 'id', 72 'foreign' => 'author_id')); 36 73 37 $this->hasMany('pkContextCMSAreaVersion', array('local' => 'id', 38 'foreign' => 'author_id')); 74 $this->hasMany('pkContextCMSAreaVersion', array( 75 'local' => 'id', 76 'foreign' => 'author_id')); 39 77 40 $this->hasMany('pkContextCMSAccess as Accesses', array('local' => 'id', 41 'foreign' => 'user_id')); 78 $this->hasMany('pkContextCMSAccess as Accesses', array( 79 'local' => 'id', 80 'foreign' => 'user_id')); 42 81 43 $this->hasMany('pkMediaItem as MediaItems', array('local' => 'id', 44 'foreign' => 'owner_id')); 82 $this->hasMany('pkMediaItem as MediaItems', array( 83 'local' => 'id', 84 'foreign' => 'owner_id')); 45 85 46 $this->hasMany('sfGuardUserPermission', array('local' => 'id', 47 'foreign' => 'user_id')); 86 $this->hasMany('sfGuardUserPermission', array( 87 'local' => 'id', 88 'foreign' => 'user_id')); 48 89 49 $this->hasMany('sfGuardUserGroup', array('local' => 'id', 50 'foreign' => 'user_id')); 90 $this->hasMany('sfGuardUserGroup', array( 91 'local' => 'id', 92 'foreign' => 'user_id')); 51 93 52 $this->hasOne('sfGuardRememberKey as RememberKeys', array('local' => 'id', 53 'foreign' => 'user_id')); 94 $this->hasOne('sfGuardRememberKey as RememberKeys', array( 95 'local' => 'id', 96 'foreign' => 'user_id')); 54 97 55 98 $timestampable0 = new Doctrine_Template_Timestampable(); plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/sfDoctrineGuardPlugin/base/BasesfGuardUserGroup.class.php
r16105 r20774 9 9 { 10 10 $this->setTableName('sf_guard_user_group'); 11 $this->hasColumn('user_id', 'integer', 4, array('type' => 'integer', 'primary' => true, 'length' => '4')); 12 $this->hasColumn('group_id', 'integer', 4, array('type' => 'integer', 'primary' => true, 'length' => '4')); 11 $this->hasColumn('user_id', 'integer', 4, array( 12 'type' => 'integer', 13 'primary' => true, 14 'length' => '4', 15 )); 16 $this->hasColumn('group_id', 'integer', 4, array( 17 'type' => 'integer', 18 'primary' => true, 19 'length' => '4', 20 )); 13 21 } 14 22 15 23 public function setUp() 16 24 { 17 $this->hasOne('sfGuardUser', array('local' => 'user_id', 18 'foreign' => 'id', 19 'onDelete' => 'CASCADE')); 25 $this->hasOne('sfGuardUser', array( 26 'local' => 'user_id', 27 'foreign' => 'id', 28 'onDelete' => 'CASCADE')); 20 29 21 $this->hasOne('sfGuardGroup', array('local' => 'group_id', 22 'foreign' => 'id', 23 'onDelete' => 'CASCADE')); 30 $this->hasOne('sfGuardGroup', array( 31 'local' => 'group_id', 32 'foreign' => 'id', 33 'onDelete' => 'CASCADE')); 24 34 25 35 $timestampable0 = new Doctrine_Template_Timestampable(); plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/sfDoctrineGuardPlugin/base/BasesfGuardUserPermission.class.php
r16105 r20774 9 9 { 10 10 $this->setTableName('sf_guard_user_permission'); 11 $this->hasColumn('user_id', 'integer', 4, array('type' => 'integer', 'primary' => true, 'length' => '4')); 12 $this->hasColumn('permission_id', 'integer', 4, array('type' => 'integer', 'primary' => true, 'length' => '4')); 11 $this->hasColumn('user_id', 'integer', 4, array( 12 'type' => 'integer', 13 'primary' => true, 14 'length' => '4', 15 )); 16 $this->hasColumn('permission_id', 'integer', 4, array( 17 'type' => 'integer', 18 'primary' => true, 19 'length' => '4', 20 )); 13 21 } 14 22 15 23 public function setUp() 16 24 { 17 $this->hasOne('sfGuardUser', array('local' => 'user_id', 18 'foreign' => 'id', 19 'onDelete' => 'CASCADE')); 25 $this->hasOne('sfGuardUser', array( 26 'local' => 'user_id', 27 'foreign' => 'id', 28 'onDelete' => 'CASCADE')); 20 29 21 $this->hasOne('sfGuardPermission', array('local' => 'permission_id', 22 'foreign' => 'id', 23 'onDelete' => 'CASCADE')); 30 $this->hasOne('sfGuardPermission', array( 31 'local' => 'permission_id', 32 'foreign' => 'id', 33 'onDelete' => 'CASCADE')); 24 34 25 35 $timestampable0 = new Doctrine_Template_Timestampable(); plugins/pkContextCMSPlugin/cmstest/web/css/main.css
r19207 r20774 90 90 #pk-area-body 91 91 { 92 width: 720px;92 width:480px; 93 93 float:left; 94 94 display:inline; 95 95 position:relative; 96 } 97 98 #pk-area-sidebar 99 { 100 width:200px; 101 float:left; 102 display:inline; 103 position:relative; 104 margin-left: 40px; 96 105 } 97 106