Development

Changeset 20774

You must first sign up to be able to contribute.

Changeset 20774

Show
Ignore:
Timestamp:
08/04/09 22:05:31 (4 years ago)
Author:
johnnyoffline
Message:

cleaning up cmstest

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/pkContextCMSPlugin/cmstest/apps/frontend/templates/layout.php

    r19688 r20774  
    4343    <div id="pk-content"> 
    4444      <?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")) ?> 
    4846    </div> 
    4947 
  • plugins/pkContextCMSPlugin/cmstest/lib/filter/doctrine/pkContextCMSPlugin/base/BasepkContextCMSPageFormFilter.class.php

    r16105 r20774  
    2222      'author_id'      => new sfWidgetFormDoctrineChoice(array('model' => 'sfGuardUser', 'add_empty' => true)), 
    2323      'deleter_id'     => new sfWidgetFormFilterInput(), 
     24      'engine'         => new sfWidgetFormFilterInput(), 
    2425      'created_at'     => new sfWidgetFormFilterDate(array('from_date' => new sfWidgetFormDate(), 'to_date' => new sfWidgetFormDate(), 'with_empty' => true)), 
    2526      'updated_at'     => new sfWidgetFormFilterDate(array('from_date' => new sfWidgetFormDate(), 'to_date' => new sfWidgetFormDate(), 'with_empty' => true)), 
     
    3738      'author_id'      => new sfValidatorDoctrineChoice(array('required' => false, 'model' => 'sfGuardUser', 'column' => 'id')), 
    3839      'deleter_id'     => new sfValidatorSchemaFilter('text', new sfValidatorInteger(array('required' => false))), 
     40      'engine'         => new sfValidatorPass(array('required' => false)), 
    3941      'created_at'     => new sfValidatorDateRange(array('required' => false, 'from_date' => new sfValidatorDate(array('required' => false)), 'to_date' => new sfValidatorDate(array('required' => false)))), 
    4042      'updated_at'     => new sfValidatorDateRange(array('required' => false, 'from_date' => new sfValidatorDate(array('required' => false)), 'to_date' => new sfValidatorDate(array('required' => false)))), 
     
    6769      'author_id'      => 'ForeignKey', 
    6870      'deleter_id'     => 'Number', 
     71      'engine'         => 'Text', 
    6972      'created_at'     => 'Date', 
    7073      'updated_at'     => 'Date', 
  • plugins/pkContextCMSPlugin/cmstest/lib/filter/doctrine/pkMediaPlugin/base/BasepkMediaItemFormFilter.class.php

    r19047 r20774  
    1515  { 
    1616    $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'))), 
    1818      'service_url'    => new sfWidgetFormFilterInput(), 
    1919      'format'         => new sfWidgetFormFilterInput(), 
     
    3232 
    3333    $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'))), 
    3535      'service_url'    => new sfValidatorPass(array('required' => false)), 
    3636      'format'         => new sfValidatorPass(array('required' => false)), 
  • plugins/pkContextCMSPlugin/cmstest/lib/form/doctrine/pkContextCMSPlugin/base/BasepkContextCMSPageForm.class.php

    r19186 r20774  
    2121      'author_id'      => new sfWidgetFormDoctrineChoice(array('model' => 'sfGuardUser', 'add_empty' => true)), 
    2222      'deleter_id'     => new sfWidgetFormInput(), 
     23      'engine'         => new sfWidgetFormInput(), 
    2324      'created_at'     => new sfWidgetFormDateTime(), 
    2425      'updated_at'     => new sfWidgetFormDateTime(), 
     
    3738      'author_id'      => new sfValidatorDoctrineChoice(array('model' => 'sfGuardUser', 'required' => false)), 
    3839      'deleter_id'     => new sfValidatorInteger(array('required' => false)), 
     40      'engine'         => new sfValidatorString(array('max_length' => 255, 'required' => false)), 
    3941      'created_at'     => new sfValidatorDateTime(array('required' => false)), 
    4042      'updated_at'     => new sfValidatorDateTime(array('required' => false)), 
  • plugins/pkContextCMSPlugin/cmstest/lib/form/doctrine/pkMediaPlugin/base/BasepkMediaItemForm.class.php

    r19186 r20774  
    1414    $this->setWidgets(array( 
    1515      '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'))), 
    1717      'service_url'    => new sfWidgetFormInput(), 
    1818      'format'         => new sfWidgetFormInput(), 
     
    3232    $this->setValidators(array( 
    3333      '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'))), 
    3535      'service_url'    => new sfValidatorString(array('max_length' => 200, 'required' => false)), 
    3636      'format'         => new sfValidatorString(array('max_length' => 10, 'required' => false)), 
  • plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/pkContextCMSPlugin/base/BasepkContextCMSAccess.class.php

    r19047 r20774  
    99    { 
    1010        $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             )); 
    1423 
    1524 
    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             )); 
    1731        $this->option('type', 'INNODB'); 
    1832    } 
     
    2034    public function setUp() 
    2135    { 
    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')); 
    2540 
    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')); 
    2945    } 
    3046} 
  • plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/pkContextCMSPlugin/base/BasepkContextCMSArea.class.php

    r16105 r20774  
    99    { 
    1010        $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             )); 
    1633 
    1734 
    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             )); 
    1941        $this->option('type', 'INNODB'); 
    2042    } 
     
    2244    public function setUp() 
    2345    { 
    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')); 
    2750 
    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')); 
    3054    } 
    3155} 
  • plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/pkContextCMSPlugin/base/BasepkContextCMSAreaVersion.class.php

    r19047 r20774  
    99    { 
    1010        $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             )); 
    1633 
    1734 
    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             )); 
    1941        $this->option('type', 'INNODB'); 
    2042    } 
     
    2244    public function setUp() 
    2345    { 
    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')); 
    2750 
    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')); 
    3055 
    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')); 
    3359 
    3460        $timestampable0 = new Doctrine_Template_Timestampable(); 
  • plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/pkContextCMSPlugin/base/BasepkContextCMSAreaVersionSlot.class.php

    r16105 r20774  
    99    { 
    1010        $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             )); 
    1529 
    1630 
    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             )); 
    1837        $this->option('type', 'INNODB'); 
    1938    } 
     
    2140    public function setUp() 
    2241    { 
    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')); 
    2646 
    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')); 
    3051    } 
    3152} 
  • plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/pkContextCMSPlugin/base/BasepkContextCMSLuceneUpdate.class.php

    r19047 r20774  
    99    { 
    1010        $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             )); 
    1319 
    1420 
    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             )); 
    1628        $this->option('type', 'INNODB'); 
    1729    } 
     
    1931    public function setUp() 
    2032    { 
    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')); 
    2437    } 
    2538} 
  • plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/pkContextCMSPlugin/base/BasepkContextCMSPage.class.php

    r16852 r20774  
    99    { 
    1010        $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             )); 
    1947 
    2048 
    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             )); 
    2261        $this->option('type', 'INNODB'); 
    2362    } 
     
    2564    public function setUp() 
    2665    { 
    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')); 
    2969 
    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')); 
    3273 
    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')); 
    3577 
    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')); 
    3881 
    39         $this->hasMany('pkContextCMSLuceneUpdate', array('local' => 'id', 
    40                                                          'foreign' => 'page_id')); 
     82        $this->hasMany('pkContextCMSLuceneUpdate', array( 
     83             'local' => 'id', 
     84             'foreign' => 'page_id')); 
    4185 
    4286        $timestampable0 = new Doctrine_Template_Timestampable(); 
  • plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/pkContextCMSPlugin/base/BasepkContextCMSSlot.class.php

    r16876 r20774  
    99    { 
    1010        $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             )); 
    1424 
    1525        $this->option('type', 'INNODB'); 
    1626 
    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             )); 
    1857    } 
    1958 
    2059    public function setUp() 
    2160    { 
    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')); 
    2464    } 
    2565} 
  • plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/pkMediaPlugin/base/BasepkMediaItem.class.php

    r19047 r20774  
    99    { 
    1010        $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             )); 
    2369 
    2470        $this->option('type', 'INNODB'); 
     
    2773    public function setUp() 
    2874    { 
    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')); 
    3279 
    3380        $timestampable0 = new Doctrine_Template_Timestampable(); 
    3481        $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             )); 
    3690        $this->actAs($timestampable0); 
    3791        $this->actAs($taggable0); 
  • plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/sfDoctrineActAsTaggablePlugin/base/BaseTag.class.php

    r16852 r20774  
    99    { 
    1010        $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             )); 
    1630 
    1731 
    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             )); 
    2244    } 
    2345 
    2446    public function setUp() 
    2547    { 
    26         $this->hasMany('Tagging', array('local' => 'id', 
    27                                         'foreign' => 'tag_id')); 
     48        $this->hasMany('Tagging', array( 
     49             'local' => 'id', 
     50             'foreign' => 'tag_id')); 
    2851    } 
    2952} 
  • plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/sfDoctrineActAsTaggablePlugin/base/BaseTagging.class.php

    r16852 r20774  
    99    { 
    1010        $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             )); 
    1422 
    1523 
    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             )); 
    1837 
    1938        $this->setAttribute(Doctrine::ATTR_EXPORT, Doctrine::EXPORT_ALL ^ Doctrine::EXPORT_CONSTRAINTS); 
     
    2241    public function setUp() 
    2342    { 
    24         $this->hasOne('Tag', array('local' => 'tag_id', 
    25                                    'foreign' => 'id')); 
     43        $this->hasOne('Tag', array( 
     44             'local' => 'tag_id', 
     45             'foreign' => 'id')); 
    2646    } 
    2747} 
  • plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/sfDoctrineGuardPlugin/base/BasesfGuardGroup.class.php

    r16105 r20774  
    99    { 
    1010        $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             )); 
    1426    } 
    1527 
    1628    public function setUp() 
    1729    { 
    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')); 
    2134 
    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')); 
    2539 
    26         $this->hasMany('sfGuardGroupPermission', array('local' => 'id', 
    27                                                        'foreign' => 'group_id')); 
     40        $this->hasMany('sfGuardGroupPermission', array( 
     41             'local' => 'id', 
     42             'foreign' => 'group_id')); 
    2843 
    29         $this->hasMany('sfGuardUserGroup', array('local' => 'id', 
    30                                                  'foreign' => 'group_id')); 
     44        $this->hasMany('sfGuardUserGroup', array( 
     45             'local' => 'id', 
     46             'foreign' => 'group_id')); 
    3147 
    3248        $timestampable0 = new Doctrine_Template_Timestampable(); 
  • plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/sfDoctrineGuardPlugin/base/BasesfGuardGroupPermission.class.php

    r16105 r20774  
    99    { 
    1010        $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             )); 
    1321    } 
    1422 
    1523    public function setUp() 
    1624    { 
    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')); 
    2029 
    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')); 
    2434 
    2535        $timestampable0 = new Doctrine_Template_Timestampable(); 
  • plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/sfDoctrineGuardPlugin/base/BasesfGuardPermission.class.php

    r16105 r20774  
    99    { 
    1010        $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             )); 
    1426    } 
    1527 
    1628    public function setUp() 
    1729    { 
    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')); 
    2134 
    22         $this->hasMany('sfGuardGroupPermission', array('local' => 'id', 
    23                                                        'foreign' => 'permission_id')); 
     35        $this->hasMany('sfGuardGroupPermission', array( 
     36             'local' => 'id', 
     37             'foreign' => 'permission_id')); 
    2438 
    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')); 
    2843 
    29         $this->hasMany('sfGuardUserPermission', array('local' => 'id', 
    30                                                       'foreign' => 'permission_id')); 
     44        $this->hasMany('sfGuardUserPermission', array( 
     45             'local' => 'id', 
     46             'foreign' => 'permission_id')); 
    3147 
    3248        $timestampable0 = new Doctrine_Template_Timestampable(); 
  • plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/sfDoctrineGuardPlugin/base/BasesfGuardRememberKey.class.php

    r16105 r20774  
    99    { 
    1010        $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             )); 
    1530    } 
    1631 
    1732    public function setUp() 
    1833    { 
    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')); 
    2238 
    2339        $timestampable0 = new Doctrine_Template_Timestampable(); 
  • plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/sfDoctrineGuardPlugin/base/BasesfGuardUser.class.php

    r19047 r20774  
    99    { 
    1010        $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             )); 
    1948 
    2049 
    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             )); 
    2256    } 
    2357 
    2458    public function setUp() 
    2559    { 
    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')); 
    2964 
    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')); 
    3369 
    34         $this->hasMany('pkContextCMSPage', array('local' => 'id', 
    35                                                  'foreign' => 'author_id')); 
     70        $this->hasMany('pkContextCMSPage', array( 
     71             'local' => 'id', 
     72             'foreign' => 'author_id')); 
    3673 
    37         $this->hasMany('pkContextCMSAreaVersion', array('local' => 'id', 
    38                                                         'foreign' => 'author_id')); 
     74        $this->hasMany('pkContextCMSAreaVersion', array( 
     75             'local' => 'id', 
     76             'foreign' => 'author_id')); 
    3977 
    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')); 
    4281 
    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')); 
    4585 
    46         $this->hasMany('sfGuardUserPermission', array('local' => 'id', 
    47                                                       'foreign' => 'user_id')); 
     86        $this->hasMany('sfGuardUserPermission', array( 
     87             'local' => 'id', 
     88             'foreign' => 'user_id')); 
    4889 
    49         $this->hasMany('sfGuardUserGroup', array('local' => 'id', 
    50                                                  'foreign' => 'user_id')); 
     90        $this->hasMany('sfGuardUserGroup', array( 
     91             'local' => 'id', 
     92             'foreign' => 'user_id')); 
    5193 
    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')); 
    5497 
    5598        $timestampable0 = new Doctrine_Template_Timestampable(); 
  • plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/sfDoctrineGuardPlugin/base/BasesfGuardUserGroup.class.php

    r16105 r20774  
    99    { 
    1010        $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             )); 
    1321    } 
    1422 
    1523    public function setUp() 
    1624    { 
    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')); 
    2029 
    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')); 
    2434 
    2535        $timestampable0 = new Doctrine_Template_Timestampable(); 
  • plugins/pkContextCMSPlugin/cmstest/lib/model/doctrine/sfDoctrineGuardPlugin/base/BasesfGuardUserPermission.class.php

    r16105 r20774  
    99    { 
    1010        $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             )); 
    1321    } 
    1422 
    1523    public function setUp() 
    1624    { 
    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')); 
    2029 
    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')); 
    2434 
    2535        $timestampable0 = new Doctrine_Template_Timestampable(); 
  • plugins/pkContextCMSPlugin/cmstest/web/css/main.css

    r19207 r20774  
    9090#pk-area-body 
    9191{ 
    92   width:720px; 
     92  width:480px; 
    9393  float:left; 
    9494  display:inline; 
    9595  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; 
    96105} 
    97106