Community Support Forums — WordPress® ( Users Helping Users ) — 2011-12-20T09:50:34-05:00 http://www.primothemes.com/forums/feed.php?f=40&t=13092 2011-12-20T09:50:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13092&p=57828#p57828 <![CDATA[s2Member v111220 / Source Code: s2member\i...]]>
s2Member v111220
Source Code: s2member\includes\classes\utils-arrays.inc.php
Docs updated: December 20, 2011, 9:50 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — December 20th, 2011, 9:50 am


]]>
2011-12-07T01:03:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13092&p=55510#p55510 <![CDATA[s2Member v111206 / Source Code: s2member\i...]]>
s2Member v111206
Source Code: s2member\includes\classes\utils-arrays.inc.php
Docs updated: December 7, 2011, 1:03 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — December 7th, 2011, 1:03 am


]]>
2011-11-05T19:26:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13092&p=51884#p51884 <![CDATA[s2Member v111105 / Source Code: s2member\i...]]>
s2Member v111105
Source Code: s2member\includes\classes\utils-arrays.inc.php
Docs updated: November 5, 2011, 8:26 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — November 5th, 2011, 7:26 pm


]]>
2011-10-29T20:35:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13092&p=49979#p49979 <![CDATA[s2Member v111029 / Source Code: s2member\i...]]>
s2Member v111029
Source Code: s2member\includes\classes\utils-arrays.inc.php
Docs updated: October 29, 2011, 9:35 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 29th, 2011, 8:35 pm


]]>
2011-10-17T15:39:35-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13092&p=47773#p47773 <![CDATA[s2Member v111017 / Source Code: s2member\i...]]>
s2Member v111017
Source Code: s2member\includes\classes\utils-arrays.inc.php
Docs updated: October 17, 2011, 1:39 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 17th, 2011, 3:39 pm


]]>
2011-10-11T14:35:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13092&p=46174#p46174 <![CDATA[s2Member v111011 / Source Code: s2member\i...]]>
s2Member v111011
Source Code: s2member\includes\classes\utils-arrays.inc.php
Docs updated: October 11, 2011, 12:35 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 11th, 2011, 2:35 pm


]]>
2011-10-03T15:47:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13092&p=44304#p44304 <![CDATA[s2Member v111003 / Source Code: s2member\i...]]>
s2Member v111003
Source Code: s2member\includes\classes\utils-arrays.inc.php
Docs updated: October 3, 2011, 1:47 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 3rd, 2011, 3:47 pm


]]>
2011-10-03T03:41:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13092&p=43011#p43011 <![CDATA[s2Member v111002 / Source Code: s2member\i...]]>
s2Member v111002
Source Code: s2member\includes\classes\utils-arrays.inc.php
Docs updated: October 3, 2011, 1:41 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 3rd, 2011, 3:41 am


]]>
2011-09-27T05:26:54-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13092&p=41257#p41257 <![CDATA[s2Member v110927 / Source Code: s2member\i...]]>
s2Member v110927
Source Code: s2member\includes\classes\utils-arrays.inc.php
Docs updated: September 27, 2011, 3:26 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 27th, 2011, 5:26 am


]]>
2011-09-26T21:03:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13092&p=40013#p40013 <![CDATA[s2Member v110926 / Source Code: s2member\i...]]>
s2Member v110926
Source Code: s2member\includes\classes\utils-arrays.inc.php
Docs updated: September 26, 2011, 7:03 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 26th, 2011, 9:03 pm


]]>
2011-09-17T16:20:55-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13092&p=38155#p38155 <![CDATA[s2Member v110915 / Source Code: s2member\i...]]>
s2Member v110915
Source Code: s2member\includes\classes\utils-arrays.inc.php
Docs updated: September 17, 2011, 2:21 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 17th, 2011, 4:20 pm


]]>
2011-09-14T01:28:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13092&p=36736#p36736 <![CDATA[s2Member v110913 / Source Code: s2member\i...]]>
s2Member v110913
Source Code: s2member\includes\classes\utils-arrays.inc.php
Docs updated: September 13, 2011, 11:28 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 14th, 2011, 1:28 am


]]>
2011-09-13T12:03:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13092&p=35464#p35464 <![CDATA[s2Member v110912 / Source Code: s2member\i...]]>
s2Member v110912
Source Code: s2member\includes\classes\utils-arrays.inc.php
Docs updated: September 13, 2011, 10:03 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 13th, 2011, 12:03 pm


]]>
2011-08-15T15:14:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13092&p=31585#p31585 <![CDATA[s2Member v110815 / Source Code: s2member\i...]]>
s2Member v110815
Source Code: s2member\includes\classes\utils-arrays.inc.php
Docs updated: August 15, 2011, 4:14 pm

Open for public discussion.
(!-- s-words :: --)Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code jQuery(window).load(function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli'+location.hash).addClass('hilite'); }); jQuery(window).bind('hashchange', function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli').removeClass('hilite'); jQuery('olli'+location.hash).addClass('hilite'); }); [ full view ]s2member\includes\classes\utils-arrays.inc.php ?php /** * Array utilities. * * Copyright: © 2009-2011 * {@link http://www.websharks-inc.com/ WebSharks, Inc.} * ( coded in the USA ) * * Released under the terms of the GNU General Public License. * You should have received a copy of the GNU General Public License, * along with this software. In the main directory, see: /licensing/ * If not, see: {@link http://www.gnu.org/licenses/}. * * @package s2Member\Utilities * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_utils_arrays" ) ) { /** * Array utilities. * * @package s2Member\Utilities * @since 3.5 */ class c_ws_plugin__s2member_utils_arrays { /** * Extends ``array_unique()`` to support multi-dimensional arrays. * * @package s2Member\Utilities * @since 3.5 * * @param array $array Expects an incoming array. * @return array Returns the ``$array`` after having reduced it to a unique set of values. */ public static function array_unique ( $array = FALSE ) { if ( ! is_array ( $array ) ) { return array ( $array ) ; } else /* Serialized array_unique. */ { foreach ( $array as & $value ) { $value = serialize ( $value ) ; } /**/ $array = array_unique ( $array ) ; /**/ foreach ( $array as & $value ) { $value = unserialize ( $value ) ; } /**/ return $array ; } } /** * Searches an array *( or even a multi-dimensional array )* using a regular expression match against array values. * * @package s2Member\Utilities * @since 3.5 * * @param str $regex A regular expression to look for inside the array. * @return bool True if the regular expression matched at least one value in the array, else false. */ public static function regex_in_array ( $regex = FALSE , $array = FALSE ) { if ( is_string ( $regex ) && strlen ( $regex ) && is_array ( $array ) ) { foreach ( $array as $value ) { if ( is_array ( $value ) ) /* Recursive function call? */ { if (c_ws_plugin__s2member_utils_arrays:: regex_in_array ( $regex , $value ) ) return true ; } else if ( is_string ( $value ) ) /* Must be a string. */ { if ( @ preg_match ( $regex , $value ) ) return true ; } } /**/ return false ; } else /* False. */ return false ; } /** * Searches an array *( or even a multi-dimensional array )* of regular expressions, to match against a string value. * * @package s2Member\Utilities * @since 3.5 * * @param str $string A string to test against. * @param array $array An array of regex patterns to match against ``$string``. * @return bool True if at least one regular expression in the ``$array`` matched ``$string``, else false. */ public static function in_regex_array ( $string = FALSE , $array = FALSE ) { if ( is_string ( $string ) && strlen ( $string ) && is_array ( $array ) ) { foreach ( $array as $value ) { if ( is_array ( $value ) ) /* Recursive function call. */ { if (c_ws_plugin__s2member_utils_arrays:: in_regex_array ( $string , $value ) ) return true ; } else if ( is_string ( $value ) ) /* Must be a string. */ { if ( @ preg_match ( $value , $string ) ) return true ; } } /**/ return false ; } else /* False. */ return false ; } /** * Removes all null-value array keys from an array *( or even a multi-dimensional array )*. * * @package s2Member\Utilities * @since 110720 * * @param array $array An input array. * @return array|mixed The output array, or whatever was passed in. */ public static function remove_null_keys ( $array = FALSE ) { if ( is_array ( $array ) && ! empty ( $array ) ) { foreach ( $array as $key = $value ) { if ( is_array ( $value ) ) /* Recursive function call. */ { $array [ $key ] = c_ws_plugin__s2member_utils_arrays:: remove_null_keys ( $value ) ; } else if ( is_null ( $value ) ) /* Is it null? */ { unset ( $array [ $key ] ) ; } } /**/ return $array ; } else /* Return same. */ return $array ; } } } ? [ full view ]s2member\includes\classes\utils-arrays.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

Statistics: Posted by System Robot — August 15th, 2011, 3:14 pm


]]>
2011-07-11T17:30:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13092&p=27755#p27755 <![CDATA[s2Member v110710 / Source Code: s2member\i...]]>
s2Member v110710
Source Code: s2member\includes\classes\utils-arrays.inc.php
Docs updated: July 11, 2011, 6:30 pm

Open for public discussion.
(!-- s-words :: --)Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code jQuery(window).load(function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli'+location.hash).addClass('hilite'); }); jQuery(window).bind('hashchange', function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli').removeClass('hilite'); jQuery('olli'+location.hash).addClass('hilite'); }); [ full view ]s2member\includes\classes\utils-arrays.inc.php ?php /** * Array utilities. * * Copyright: © 2009-2011 * {@link http://www.websharks-inc.com/ WebSharks, Inc.} * ( coded in the USA ) * * Released under the terms of the GNU General Public License. * You should have received a copy of the GNU General Public License, * along with this software. In the main directory, see: /licensing/ * If not, see: {@link http://www.gnu.org/licenses/}. * * @package s2Member\Utilities * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_utils_arrays" ) ) { /** * Array utilities. * * @package s2Member\Utilities * @since 3.5 */ class c_ws_plugin__s2member_utils_arrays { /** * Extends ``array_unique()`` to support multi-dimensional arrays. * * @package s2Member\Utilities * @since 3.5 * * @param array $array Expects an incoming array. * @return array Returns the ``$array`` after having reduced it to a unique set of values. */ public static function array_unique ( $array = FALSE ) { if ( ! is_array ( $array ) ) { return array ( $array ) ; } else /* Serialized array_unique. */ { foreach ( $array as & $value ) { $value = serialize ( $value ) ; } /**/ $array = array_unique ( $array ) ; /**/ foreach ( $array as & $value ) { $value = unserialize ( $value ) ; } /**/ return $array ; } } /** * Searches an array *( or even a multi-dimensional array )* using a regular expression match against array values. * * @package s2Member\Utilities * @since 3.5 * * @param str $regex A regular expression to look for inside the array. * @return bool True if the regular expression matched at least one value in the array, else false. */ public static function regex_in_array ( $regex = FALSE , $array = FALSE ) { if ( is_string ( $regex ) && strlen ( $regex ) && is_array ( $array ) ) { foreach ( $array as $value ) { if ( is_array ( $value ) ) /* Recursive function call? */ { if (c_ws_plugin__s2member_utils_arrays:: regex_in_array ( $regex , $value ) ) return true ; } else if ( is_string ( $value ) ) /* Must be a string. */ { if ( @ preg_match ( $regex , $value ) ) return true ; } } /**/ return false ; } else /* False. */ return false ; } /** * Searches an array *( or even a multi-dimensional array )* of regular expressions, to match against a string value. * * @package s2Member\Utilities * @since 3.5 * * @param str $string A string to test against. * @param array $array An array of regex patterns to match against ``$string``. * @return bool True if at least one regular expression in the ``$array`` matched ``$string``, else false. */ public static function in_regex_array ( $string = FALSE , $array = FALSE ) { if ( is_string ( $string ) && strlen ( $string ) && is_array ( $array ) ) { foreach ( $array as $value ) { if ( is_array ( $value ) ) /* Recursive function call. */ { if (c_ws_plugin__s2member_utils_arrays:: in_regex_array ( $string , $value ) ) return true ; } else if ( is_string ( $value ) ) /* Must be a string. */ { if ( @ preg_match ( $value , $string ) ) return true ; } } /**/ return false ; } else /* False. */ return false ; } } } ? [ full view ]s2member\includes\classes\utils-arrays.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

Statistics: Posted by System Robot — July 11th, 2011, 5:30 pm


]]>
2011-07-09T06:10:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13092&p=25387#p25387 <![CDATA[s2Member v111220 / Source Code: s2member\i...]]>
s2Member v111220
Source Code: s2member\includes\classes\utils-arrays.inc.php
Docs updated: December 20, 2011, 9:50 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — July 9th, 2011, 6:10 am


]]>