当前位置: 首页>>代码示例>>PHP>>正文


PHP TaskPeer::retrieveByPk方法代码示例

本文整理汇总了PHP中TaskPeer::retrieveByPk方法的典型用法代码示例。如果您正苦于以下问题:PHP TaskPeer::retrieveByPk方法的具体用法?PHP TaskPeer::retrieveByPk怎么用?PHP TaskPeer::retrieveByPk使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在TaskPeer的用法示例。


在下文中一共展示了TaskPeer::retrieveByPk方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: setTasLastAssigned

    function setTasLastAssigned ($tasUid, $usrUid)

    {

        try {

            $oTask = TaskPeer::retrieveByPk( $tasUid );

            $oTask->setTasLastAssigned( $usrUid );

            $oTask->save();

        } catch (Exception $e) {

            throw ($e);

        }

    }
开发者ID:rrsc,项目名称:processmaker,代码行数:19,代码来源:class.derivation.php

示例2:

         if (isset($aValues['NEXT_TASK']['TAS_DEF_PROC_CODE'])) {
             $aFields['TASK'][$sKey]['NEXT_TASK']['TAS_DEF_PROC_CODE'] = '<input type="hidden" name="' . $hiddenName . '[TAS_DEF_PROC_CODE]" id="' . $hiddenName . '[TAS_DEF_PROC_CODE]" value="' . $aValues['NEXT_TASK']['TAS_DEF_PROC_CODE'] . '">';
         } else {
             $aFields['TASK'][$sKey]['NEXT_TASK']['TAS_DEF_PROC_CODE'] = '<input type="hidden" name="' . $hiddenName . '[TAS_DEF_PROC_CODE]" id="' . $hiddenName . '[TAS_DEF_PROC_CODE]" value="">';
         }
         $aFields['TASK'][$sKey]['NEXT_TASK']['DEL_PRIORITY'] = '<input type="hidden" name="' . $hiddenName . '[DEL_PRIORITY]"      id="' . $hiddenName . '[DEL_PRIORITY]"      value="' . $sPriority . '">';
         $aFields['TASK'][$sKey]['NEXT_TASK']['TAS_PARENT'] = '<input type="hidden" name="' . $hiddenName . '[TAS_PARENT]"        id="' . $hiddenName . '[TAS_PARENT]"        value="' . $aValues['NEXT_TASK']['TAS_PARENT'] . '">';
     }
 }
 $aFields['PROCESSING_MESSAGE'] = G::loadTranslation('ID_PROCESSING');
 /**
  * New Feature: Derivation Screen can be personalized
  * @author Erik Amaru Ortiz <erik@colosa.com>
  */
 $tplFile = 'cases/cases_ScreenDerivation';
 $task = TaskPeer::retrieveByPk($_SESSION['TASK']);
 $tasDerivationScreenTpl = $task->getTasDerivationScreenTpl();
 if (!empty($tasDerivationScreenTpl)) {
     //erik: first, verify if the task has a personalized template (for derivation screen)
     $tplFile = $tasDerivationScreenTpl;
     $tplFile = PATH_DATA_MAILTEMPLATES . $aFields['PROCESS']['PRO_UID'] . PATH_SEP . $tplFile;
 } else {
     //erik: verify if the process has a personalized template (for derivation screen)
     if (!empty($aFields['PROCESS']['PRO_DERIVATION_SCREEN_TPL'])) {
         $tplFile = $aFields['PROCESS']['PRO_DERIVATION_SCREEN_TPL'];
         $tplFile = PATH_DATA_MAILTEMPLATES . $aFields['PROCESS']['PRO_UID'] . PATH_SEP . $tplFile;
     }
 }
 $G_PUBLISH->AddContent('smarty', $tplFile, '', '', $aFields);
 /*
       if (isset( $aFields['TASK'][1]['NEXT_TASK']['USER_ASSIGNED'])){
开发者ID:rodriquelca,项目名称:processmaker,代码行数:31,代码来源:cases_Step.php

示例3: assignActorsTask

 /**
  * Assign actors to task
  *
  * @param unknown_type $param
  */
 public function assignActorsTask($param)
 {
     require_once 'classes/model/TaskUser.php';
     require_once 'classes/model/Task.php';
     $oTaskUser = new TaskUser();
     $UIDS = explode(',', $param->UIDS);
     $TU_TYPE = $param->TU_TYPE;
     $TAS_UID = $param->TAS_UID;
     foreach ($UIDS as $UID) {
         if ($param->TU_RELATION == '1') {
             $res[] = $oTaskUser->create(array('TAS_UID' => $TAS_UID, 'USR_UID' => $UID, 'TU_TYPE' => $TU_TYPE, 'TU_RELATION' => 1));
         } else {
             $res[] = $oTaskUser->create(array('TAS_UID' => $TAS_UID, 'USR_UID' => $UID, 'TU_TYPE' => $TU_TYPE, 'TU_RELATION' => 2));
         }
     }
     $task = TaskPeer::retrieveByPk($TAS_UID);
     $this->success = true;
     if (!in_array('-1', $res)) {
         if (count($UIDS) == 1) {
             $this->msg = __('ID_ACTOR_ASSIGNED_SUCESSFULLY', SYS_LANG, array('tas_title' => $task->getTasTitle()));
         } else {
             $this->msg = __('ID_ACTORS_ASSIGNED_SUCESSFULLY', SYS_LANG, array(count($UIDS), $task->getTasTitle()));
         }
     } else {
         if (count($UIDS) == 1) {
             $this->msg = __('ID_ACTOR_ALREADY_ASSIGNED', SYS_LANG, array($task->getTasTitle()));
         } else {
             $this->msg = __('ID_SOME_ACTORS_ALREADY_ASSIGNED', SYS_LANG, array($task->getTasTitle()));
         }
     }
 }
开发者ID:bqevin,项目名称:processmaker,代码行数:36,代码来源:processProxy.php

示例4: assignUsersTask

 public function assignUsersTask($param)
 {
     try {
         require_once 'classes/model/TaskUser.php';
         require_once 'classes/model/Task.php';
         $oTaskUser = new TaskUser();
         $UIDS = explode(',', $param['UIDS']);
         $TU_TYPE = 1;
         foreach ($UIDS as $UID) {
             if ($_POST['TU_RELATION'] == 1) {
                 $oTaskUser->create(array('TAS_UID' => $param['TAS_UID'], 'USR_UID' => $UID, 'TU_TYPE' => $TU_TYPE, 'TU_RELATION' => 1));
             } else {
                 $oTaskUser->create(array('TAS_UID' => $param['TAS_UID'], 'USR_UID' => $UID, 'TU_TYPE' => $TU_TYPE, 'TU_RELATION' => 2));
             }
         }
         $task = TaskPeer::retrieveByPk($param['TAS_UID']);
         $result->success = true;
         if (count($UIDS) > 1) {
             $result->msg = __('ID_ACTORS_ASSIGNED_SUCESSFULLY', SYS_LANG, array(count($UIDS), $task->getTasTitle()));
         } else {
             $result->msg = __('ID_ACTOR_ASSIGNED_SUCESSFULLY', SYS_LANG, array('tas_title' => $task->getTasTitle()));
         }
     } catch (Exception $e) {
         $result->success = false;
         $result->msg = $e->getMessage();
     }
     print G::json_encode($result);
 }
开发者ID:emildev35,项目名称:processmaker,代码行数:28,代码来源:ajaxListener.php

示例5: refreshCaseLabel

    public function refreshCaseLabel($sAppUid, $aAppData, $sLabel)

    {

        $getAppLabel = "getApp$sLabel";

        $getTasDef = "getTasDef$sLabel";

        $oApplication = new Application;

        if (!$oApplication->exists($sAppUid)) {

            return null;

        } else {

            $oApplication->load($sAppUid);

            $appLabel = $oApplication->$getAppLabel();

        }

        $cri = new Criteria;

        $cri->add(AppDelegationPeer::APP_UID, $sAppUid);

        $cri->add(AppDelegationPeer::DEL_THREAD_STATUS, "OPEN");

        $currentDelegations = AppDelegationPeer::doSelect($cri);

        for ($r = count($currentDelegations) - 1; $r >= 0; $r--) {

            $task = TaskPeer::retrieveByPk($currentDelegations[$r]->getTasUid());

            $caseLabel = $task->$getTasDef();

            if ($caseLabel != '') {

                $appLabel = G::replaceDataField($caseLabel, $aAppData);

                break;

            }

        }

        return $appLabel;

    }
开发者ID:nhenderson,项目名称:processmaker,代码行数:49,代码来源:class.case.php

示例6: getTaskRelatedByOverrideTaskId

 /**
  * Get the associated Task object
  *
  * @param      PropelPDO Optional Connection object.
  * @return     Task The associated Task object.
  * @throws     PropelException
  */
 public function getTaskRelatedByOverrideTaskId(PropelPDO $con = null)
 {
     if ($this->aTaskRelatedByOverrideTaskId === null && $this->override_task_id !== null) {
         $this->aTaskRelatedByOverrideTaskId = TaskPeer::retrieveByPk($this->override_task_id);
         /* The following can be used additionally to
         		   guarantee the related object contains a reference
         		   to this object.  This level of coupling may, however, be
         		   undesirable since it could result in an only partially populated collection
         		   in the referenced object.
         		   $this->aTaskRelatedByOverrideTaskId->addOverrideTasksRelatedByOverrideTaskId($this);
         		 */
     }
     return $this->aTaskRelatedByOverrideTaskId;
 }
开发者ID:snoopckuu,项目名称:prmanagment,代码行数:21,代码来源:BaseOverrideTask.php

示例7: taskExists

 /**
  * verify if Task row specified in [TasUid] exists.
  *
  * @param      string $sProUid   the uid of the Prolication
  */
 public function taskExists($TasUid)
 {
     $con = Propel::getConnection(TaskPeer::DATABASE_NAME);
     try {
         $oPro = TaskPeer::retrieveByPk($TasUid);
         if (is_object($oPro) && get_class($oPro) == 'Task') {
             return true;
         } else {
             return false;
         }
     } catch (Exception $oError) {
         throw $oError;
     }
 }
开发者ID:nshong,项目名称:processmaker,代码行数:19,代码来源:Task.php


注:本文中的TaskPeer::retrieveByPk方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。