change search by regex

This commit is contained in:
Ronald Q
2016-06-23 15:58:54 -04:00
parent 3cc18d73d7
commit 861a566b00
2 changed files with 8 additions and 9 deletions

View File

@@ -1897,17 +1897,17 @@ function PMFGenerateOutputDocument ($outputID, $sApplication = null, $index = nu
* @label PMF Group List
* @link http://wiki.processmaker.com/index.php/ProcessMaker_Functions#PMFGroupList.28.29
*
* @param string | $search = null | String to search | Optional parameter.
* @param string | $regex = null | String to search | Optional parameter.
* @param int | $start = null | Start | Optional parameter.
* @param int | $limit = null | Limit | Optional parameter.
* @return array | $rows | List of groups | An array of groups
*
*/
function PMFGroupList ($search = null, $start = null, $limit = null) //its test was successfull
function PMFGroupList ($regex = null, $start = null, $limit = null) //its test was successfull
{
G::LoadClass( 'wsBase' );
$ws = new wsBase();
$result = $ws->groupList($search, $start, $limit);
$result = $ws->groupList($regex, $start, $limit);
$rows = array();
if (isset( $result )) {
$rows = array_combine(range(1, count($result)), array_values($result));