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


PHP Cases::getCaseNotes方法代码示例

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


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

示例1: getCaseNotes

    /**

     * import process fromLibrary: downloads and imports a process from the ProcessMaker library

     *

     * @param string sessionId : The session ID (which was obtained at login).

     * @param string processId :

     * @param string version :

     * @param string importOption :

     * @param string usernameLibrary : The username to obtain access to the ProcessMaker library.

     * @param string passwordLibrary : The password to obtain access to the ProcessMaker library.

     * @return $eturns will return an object

     */



    public function getCaseNotes ($applicationID, $userUid = '')

    {

        try {

            G::LoadClass( 'case' );



            $result = new wsGetCaseNotesResponse( 0, G::loadTranslation( 'ID_SUCCESS' ), Cases::getCaseNotes( $applicationID, 'array', $userUid ) );



            $var = array ();



            foreach ($result->notes as $key => $value) {

                $var2 = array ();



                foreach ($value as $keys => $values) {

                    $field = strtolower( $keys );

                    $var2[$field] = $values;

                }



                $var[] = $var2;

            }



            $result->notes = $var;



            return $result;

        } catch (Exception $e) {

            $result = new wsResponse( 100, $e->getMessage() );



            return $result;

        }

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

示例2: PMFGetCaseNotes

/**
 * @method
 *
 * Get of the cases notes an application.
 *
 * @name PMFGetCaseNotes
 * @label PMF Get of the cases notes an application
 * @link http://wiki.processmaker.com/index.php/ProcessMaker_Functions#PMFGetCaseNotes.28.29
 *
 * @param string(32) | $applicationID | Application ID | ID of the Application.
 * @param string(32) | $type = "array" | type of the return value | type of the return value (array, object, string).
 * @param string(32) | $userUid = "" | User ID | Id of the User.
 * @return array, object or string | $response | Array of the response | Return an Array or Object or String.
 *
 */
function PMFGetCaseNotes($applicationID, $type = 'array', $userUid = '')
{
    G::LoadClass('case');
    $response = Cases::getCaseNotes($applicationID, $type, $userUid);
    return $response;
}
开发者ID:ralpheav,项目名称:processmaker,代码行数:21,代码来源:class.pmFunctions.php


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