Documentation TYPO3 par Ameos

class.tx_sysworkflows_definition.php

00001 <?php
00002         /***************************************************************
00003         *  Copyright notice
00004         *
00005         *  (c) 2004 Christian Jul Jensen <christian(at)jul(dot)net>
00006         *  All rights reserved
00007         *
00008         *  This script is part of the TYPO3 project. The TYPO3 project is
00009         *  free software; you can redistribute it and/or modify
00010         *  it under the terms of the GNU General Public License as published by
00011         *  the Free Software Foundation; either version 2 of the License, or
00012         *  (at your option) any later version.
00013         *
00014         *  The GNU General Public License can be found at
00015         *  http://www.gnu.org/copyleft/gpl.html.
00016         *  A copy is found in the textfile GPL.txt and important notices to the license
00017         *  from the author is found in LICENSE.txt distributed with these scripts.
00018         *
00019         *
00020         *  This script is distributed in the hope that it will be useful,
00021         *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00022         *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00023         *  GNU General Public License for more details.
00024         *
00025         *  This copyright notice MUST APPEAR in all copies of the script!
00026         ***************************************************************/
00032         class tx_sysworkflows_definition {
00033 
00034 
00035                 function getWorkflowTypes(&$BE_USER) {
00036                         $wfTypes = array();
00037                                 if ($BE_USER->isAdmin()) {
00038                                         $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('*', 'sys_workflows', 'sys_workflows.pid=0', '', 'sys_workflows.title');
00039                                 } else {
00040                                         $res = $GLOBALS['TYPO3_DB']->exec_SELECT_mm_query(
00041                                         'sys_workflows.*',
00042                                                 'sys_workflows',
00043                                                 "sys_workflows_algr_mm",
00044                                                 'be_groups',
00045                                                 "AND be_groups.uid IN (".($BE_USER->groupList?$BE_USER->groupList:0).")
00046                                                 AND sys_workflows.pid=0
00047                                                 AND sys_workflows.hidden=0",
00048                                                 'sys_workflows.uid',
00049                                                 'sys_workflows.title' );
00050                                 }
00051                                 while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
00052                                         $wfTypes['wf_'.$row['uid']] = $row['title'];
00053                                 }
00054                                 return $wfTypes;
00055                 }
00056 
00057         }
00058         
00059 //load XCLASS?
00060         if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/sys_workflows/class.tx_sysworkflows_definition.php']) {
00061                 include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['ext/sys_workflows/class.tx_sysworkflows_definition.php']);
00062         }
00063          
00064 ?>


Généré par TYPO3 Ameos avec  doxygen 1.4.6