/** * Returns an array of the 'edit' values from a listEditor.js array. * * @param listEditor array * @return listEditor array */ public static function getEditValues($theArray) { $theArrayValues = array(); for ($i = 0; $i < count($theArray); $i++) { if (strpos($theArray[$i], '!!EDIT!!') === 0) { $from = StringUtility::JSSubString($theArray[$i], 8, strpos($theArray[$i], '!!INTO!!')); $into = StringUtility::JSSubString($theArray[$i], strpos($theArray[$i], '!!INTO!!') + 8, strlen($theArray[$i])); $theArrayValues[] = array($from, $into); } } return $theArrayValues; }