mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 04:31:32 +00:00
add methods arrayToString() and stringToArray()
This commit is contained in:
parent
be2eb700c8
commit
9db601e610
|
@ -353,6 +353,26 @@ class Settings { /* {{{ */
|
||||||
return $out;
|
return $out;
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return ';' seperated string from array
|
||||||
|
*
|
||||||
|
* @param array $value
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
function arrayToString($value) { /* {{{ */
|
||||||
|
return implode(";", $value);
|
||||||
|
} /* }}} */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return array from ';' seperated string
|
||||||
|
*
|
||||||
|
* @param string $value
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
function stringToArray($value) { /* {{{ */
|
||||||
|
return explode(";", $Value);
|
||||||
|
} /* }}} */
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* set $_viewOnlineFileTypes
|
* set $_viewOnlineFileTypes
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue
Block a user