[ Index ]
 

Code source de eZ Publish 3.9.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/kernel/content/ -> operation_definition.php (source)

   1  <?php
   2  //
   3  // Created on: <01-Nov-2002 13:39:10 amos>
   4  //
   5  // SOFTWARE NAME: eZ publish
   6  // SOFTWARE RELEASE: 3.9.0
   7  // BUILD VERSION: 17785
   8  // COPYRIGHT NOTICE: Copyright (C) 1999-2006 eZ systems AS
   9  // SOFTWARE LICENSE: GNU General Public License v2.0
  10  // NOTICE: >
  11  //   This program is free software; you can redistribute it and/or
  12  //   modify it under the terms of version 2.0  of the GNU General
  13  //   Public License as published by the Free Software Foundation.
  14  //
  15  //   This program is distributed in the hope that it will be useful,
  16  //   but WITHOUT ANY WARRANTY; without even the implied warranty of
  17  //   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  18  //   GNU General Public License for more details.
  19  //
  20  //   You should have received a copy of version 2.0 of the GNU General
  21  //   Public License along with this program; if not, write to the Free
  22  //   Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  23  //   MA 02110-1301, USA.
  24  //
  25  //
  26  
  27  /*! \file operation_definition.php
  28  */
  29  
  30  $OperationList = array();
  31  $OperationList['read'] = array( 'name' => 'read',
  32                                  'default_call_method' => array( 'include_file' => 'kernel/content/ezcontentoperationcollection.php',
  33                                                                  'class' => 'eZContentOperationCollection' ),
  34                                  'parameter_type' => 'standard',
  35                                  'parameters' => array( array( 'name' => 'node_id',
  36                                                                'type' => 'integer',
  37                                                                'required' => true ),
  38                                                         array( 'name' => 'user_id',
  39                                                                'type' => 'integer',
  40                                                                'required' => true ),
  41                                                         array( 'name' => 'language_code',
  42                                                                'type' => 'string',
  43                                                                'default' => '',
  44                                                                'required' => false ) ),
  45                                  'keys' => array( 'node_id' ),
  46  
  47                                  'body' => array( array( 'type' => 'trigger',
  48                                                          'name' => 'pre_read',
  49                                                          'keys' => array( 'node_id',
  50                                                                           'user_id'
  51                                                                           ) ),
  52  
  53  
  54  
  55                                                   array( 'type' => 'method',
  56                                                          'name' => 'fetch-object',
  57                                                          'frequency' => 'once',
  58                                                          'method' => 'readObject',
  59                                                          ) ) );
  60  
  61  $OperationList['publish'] = array( 'name' => 'publish',
  62                                     'default_call_method' => array( 'include_file' => 'kernel/content/ezcontentoperationcollection.php',
  63                                                                     'class' => 'eZContentOperationCollection' ),
  64                                     'parameters' => array( array( 'name' => 'object_id',
  65                                                                   'type' => 'integer',
  66                                                                   'required' => true ),
  67                                                            array( 'name' => 'version',
  68                                                                   'type' => 'integer',
  69                                                                   'required' => true ) ),
  70                                     'body' => array( array( 'type' => 'method',
  71                                                             'name' => 'set-version-pending',
  72                                                             'frequency' => 'once',
  73                                                             'method' => 'setVersionStatus',
  74                                                             'parameters' => array( array( 'name' => 'object_id',
  75                                                                                           'type' => 'integer',
  76                                                                                           'required' => true ),
  77                                                                                    array( 'name' => 'version',
  78                                                                                           'type' => 'integer',
  79                                                                                           'required' => true ),
  80                                                                                    array( 'name' => 'status',
  81                                                                                           'type' => 'integer',
  82                                                                                           'constant' => 1 ) ) ), // EZ_VERSION_STATUS_PENDING
  83                                                      array( 'type' => 'trigger',
  84                                                             'name' => 'pre_publish',
  85                                                             'keys' => array( 'object_id',
  86                                                                              'version'
  87                                                                               ) ),
  88  
  89                                                      array( 'type' => 'method',
  90                                                             'name' => 'begin-publish',
  91                                                             'frequency' => 'once',
  92                                                             'method' => 'beginPublish',
  93                                                             ),
  94                                                      array( 'type' => 'method',
  95                                                             'name' => 'copy-translations',
  96                                                             'frequency' => 'once',
  97                                                             'method' => 'copyTranslations' ),
  98                                                      array( 'type' => 'method',
  99                                                             'name' => 'set-version-archived',
 100                                                             'frequency' => 'once',
 101                                                             'method' => 'setVersionStatus',
 102                                                             'parameters' => array( array( 'name' => 'object_id',
 103                                                                                           'type' => 'integer',
 104                                                                                           'required' => true ),
 105                                                                                    array( 'name' => 'version',
 106                                                                                           'type' => 'integer',
 107                                                                                           'constant' => false ), // false means current version
 108                                                                                    array( 'name' => 'status',
 109                                                                                           'type' => 'integer',
 110                                                                                           'constant' => 2 ) ) ), // EZ_VERSION_STATUS_ARCHIVED
 111                                                      array( 'type' => 'method',
 112                                                             'name' => 'update-section-id',
 113                                                             'frequency' => 'once',
 114                                                             'method' => 'updateSectionID',
 115                                                             ),
 116                                                      array( 'type' => 'loop',
 117                                                             'name' => 'loop-nodes',
 118                                                             'method' => 'loopNodeAssignment',
 119                                                             'continue_operation' => 'all',   // 'one', 'none'
 120                                                             'child_parameters' => array( array( 'name' => 'parent_node_id',
 121                                                                                                 'type' => 'integer',
 122                                                                                                 'required' => true ),
 123                                                                                          array( 'name' => 'object_id',
 124                                                                                                 'type' => 'integer',
 125                                                                                                 'required' => true ),
 126                                                                                          array( 'name' => 'version',
 127                                                                                                 'type' => 'integer',
 128                                                                                                 'required' => true ),
 129                                                                                          array( 'name' => 'main_node_id',
 130                                                                                                 'type' => 'integer',
 131                                                                                                 'required' => true ) ),
 132                                                             'children' => array( array( 'type' => 'method',
 133                                                                                         'name' => 'publish-node',
 134                                                                                         'frequency' => 'always',
 135                                                                                         'method' => 'publishNode' )
 136                                                                                  ) ),
 137                                                      array( 'type' => 'method',
 138                                                             'name' => 'set-version-published',
 139                                                             'frequency' => 'once',
 140                                                             'method' => 'setVersionStatus',
 141                                                             'parameters' => array( array( 'name' => 'object_id',
 142                                                                                           'type' => 'integer',
 143                                                                                           'required' => true ),
 144                                                                                    array( 'name' => 'version',
 145                                                                                           'type' => 'integer',
 146                                                                                           'required' => true ),
 147                                                                                    array( 'name' => 'status',
 148                                                                                           'type' => 'integer',
 149                                                                                           'constant' => 3 ) ) ), // EZ_VERSION_STATUS_PUBLISHED
 150                                                      array( 'type' => 'method',
 151                                                             'name' => 'set-object-published',
 152                                                             'frequency' => 'once',
 153                                                             'method' => 'setObjectStatusPublished',
 154                                                             'parameters' => array( array( 'name' => 'object_id',
 155                                                                                           'type' => 'integer',
 156                                                                                           'required' => true ),
 157                                                                                    array( 'name' => 'version',
 158                                                                                           'type' => 'integer',
 159                                                                                           'required' => true )
 160                                                                                    ) ),
 161                                                      array( 'type' => 'method',
 162                                                             'name' => 'publish-object-extension-handler',
 163                                                             'frequency' => 'once',
 164                                                             'method' => 'publishObjectExtensionHandler',
 165                                                             'parameters' => array( array( 'name' => 'object_id',
 166                                                                                           'type' => 'integer',
 167                                                                                           'required' => true ),
 168                                                                                    array( 'name' => 'version',
 169                                                                                           'type' => 'integer',
 170                                                                                           'required' => true )
 171                                                                                    ) ),
 172                                                      array( 'type' => 'method',
 173                                                             'name' => 'remove-old-nodes',
 174                                                             'frequency' => 'once',
 175                                                             'method' => 'removeOldNodes',
 176                                                             ),
 177                                                      array( 'type' => 'method',
 178                                                             'name' => 'attribute-publish-action',
 179                                                             'frequency' => 'once',
 180                                                             'method' => 'attributePublishAction',
 181                                                             'parameters' => array( array( 'name' => 'object_id',
 182                                                                                           'type' => 'integer',
 183                                                                                           'required' => true ),
 184                                                                                    array( 'name' => 'version',
 185                                                                                           'type' => 'integer',
 186                                                                                           'required' => true ) ) ),
 187                                                      array( 'type' => 'method',
 188                                                             'name' => 'update-nontranslatable-attributes',
 189                                                             'frequency' => 'once',
 190                                                             'method' => 'updateNontranslatableAttributes' ),
 191                                                      array( 'type' => 'method',
 192                                                             'name' => 'reset-nodeassignment-opcodes',
 193                                                             'frequency' => 'once',
 194                                                             'method' => 'resetNodeassignmentOpcodes',
 195                                                             ),
 196  
 197                                                      array( 'type' => 'method',
 198                                                             'name' => 'clear-object-view-cache',
 199                                                             'frequency' => 'once',
 200                                                             'method' => 'clearObjectViewCache',
 201                                                             'parameters' => array(  array( 'name' => 'object_id',
 202                                                                                            'type' => 'integer',
 203                                                                                            'required' => true ),
 204                                                                                     array( 'name' => 'version',
 205                                                                                            'type' => 'integer',
 206                                                                                            'required' => true ) ) ),
 207                                                      // PreGeneration: This generates view cache for a given set of users if enabled
 208                                                      array( 'type' => 'method',
 209                                                             'name' => 'generate-object-view-cache',
 210                                                             'frequency' => 'once',
 211                                                             'method' => 'generateObjectViewCache',
 212                                                             'parameters' => array(  array( 'name' => 'object_id',
 213                                                                                            'type' => 'integer',
 214                                                                                            'required' => true ) ) ),
 215                                                      array( 'type' => 'method',
 216                                                             'name' => 'register-search-object',
 217                                                             'frequency' => 'once',
 218                                                             'method' => 'registerSearchObject',
 219                                                             ),
 220                                                      array( 'type' => 'method',
 221                                                             'name' => 'create-notification',
 222                                                             'frequency' => 'once',
 223                                                             'method' => 'createNotificationEvent',
 224                                                             ),
 225  
 226                                                      array( 'type' => 'method',
 227                                                             'name' => 'end-publish',
 228                                                             'frequency' => 'once',
 229                                                             'method' => 'endPublish',
 230                                                             ),
 231  
 232                                                      array( 'type' => 'method',
 233                                                             'name' => 'remove-temporary-drafts',
 234                                                             'frequency' => 'once',
 235                                                             'method' => 'removeTemporaryDrafts'
 236                                                             ),
 237  
 238                                                      array( 'type' => 'trigger',
 239                                                             'name' => 'post_publish',
 240                                                             'keys' => array( 'object_id',
 241                                                                              'version' ) ),
 242                                                      ) );
 243  ?>


Généré le : Sat Feb 24 10:30:04 2007 par Balluche grâce à PHPXref 0.7