Lines Matching refs:in

176 	 * @param string $in name to test
180 public static function isValidName( $in ) argument
182 return preg_match( '/^[_a-z][_a-z0-9]+$/i', $in );
1333 $in = $record;
1336 foreach ( $in as $column => $value )
1343 unset( $in[$column] );
1347 foreach ( $in as $column => $value )
2743 * @param string $in string containing filter definition
2747 protected function parseFilterCode( $in ) argument
2750 $in = trim( $in );
2755 while ( $in !== '' )
2758 if ( preg_match( '/^(\w+)\s+(\w+)(.*)$/i', $in, $matches ) )
2800 $in = ltrim( substr( $tail, $pos ) );
2807 $prevMode = $in[0];
2808 $in = substr( $in, 1 );
3171 * @param string $in haystack containing quoted string
3176 public static function parseString( $in, &$first ) argument
3185 $end = strpos( $in, $in[$first], $pos + 1 );
3192 if ( $in[$idx] == '\\' )
3202 $string = substr( $in, $first + 1, $end - $first - 1 );
3216 public static function parseAssignment( $in, &$first ) argument
3223 $pos += strspn( $in, " \t", $pos );
3228 $end = $pos + strcspn( $in, " \t=", $pos );
3229 $name = substr( $in, $pos, $end - $pos );
3241 $pos = $end + strspn( $in, " \t", $end );
3243 if ( $in[$pos] !== '=' )
3253 $pos += strspn( $in, " \t", $pos + 1 ) + 1;
3256 if ( $in[$pos] === '"' )
3260 $temp = self::parseString( $in, $end );
3270 $end += strcspn( $in, " \t", $end );
3272 $value = substr( $in, $pos, $end - $pos );
3285 public static function stripTags( $in, $tags = null ) argument
3298 $tag = strpos( $in, '<', $pos );
3300 return $in;
3302 if ( $in[$tag+1] == '?' )
3306 $end = strpos( $in, '?>', $tag + 2 );
3308 $in = substr_replace( $in, '', $tag, $end - $tag + 2 );
3310 $in = substr_replace( $in, '', $tag );
3320 $name = strtok( substr( $in, $tag + 1, 20 ), ' >' );
3328 if ( preg_match( "#.+?</\s*$name\s*>#i", $in, $m, null, $tag ) )
3329 $in = substr_replace( $in, '', $tag, strlen( $m[0] ) );
3331 $in = substr_replace( $in, '', $tag );
4008 * @param mixed $in value to parse
4014 protected static function asBool( $in, $nullIfUnparseable = false ) argument
4017 if ( is_numeric( $in ) )
4018 return ( $in != 0 );
4020 if ( is_string( $in ) )
4023 if ( preg_match( '/^(n|no|f|false|off)$/i', trim( $in ) ) )
4026 if ( preg_match( '/^(y|yes|t|true|on)$/i', trim( $in ) ) )
4031 if ( ctype_digit( trim( $in ) ) )
4032 return ( intval( $in ) != 0 );
4034 if ( ( $in === true ) || ( $in === false ) )
4035 return $in;
4037 return $nullIfUnparseable ? null : (bool) $in;
4718 * @param string $in representation of Date/Time in SQL format
4723 protected static function parseDBDateTime( $in, $skipTime = false ) argument
4726 list( $date, $time ) = preg_split( '/t|(\s+)/i', trim( $in ) );
4748 protected static function parseInternalDate( $in ) argument
4758 $in = preg_replace( '/\s+/', '', $in );
4761 if ( preg_match( $pattern, $in, $matches ) )
4787 protected static function parseInternalTime( $in ) argument
4794 $in = preg_replace( '/\s+/', '', $in );
4797 if ( preg_match( $pattern, $in, $matches ) )
4820 protected function parseACLRule( $in, $mayThrow = false, $useLabels = false ) argument
4825 $rules = preg_split( '/\s*;\s*/', trim( $in ) );
4930 * @param string $in string to parse for markup sequences to be replaced
4934 public function replaceMarkup( $in, $varspace = array() ) argument
4937 if ( strpos( $in, '%{' ) !== false )
4942 $in = preg_replace_callback( '/%{([^}]+)}/', array( &$this,
4943 '__replaceMarkupCB' ), $in );
4947 return $in;
5314 $in = array();
5320 $in[$key] = $list[$idx];
5323 if ( !is_array( $in ) || ( $in['error'] == UPLOAD_ERR_NO_FILE ) )
5331 if ( $in['error'] !== UPLOAD_ERR_OK )
5332 return sprintf( $this->getLang( 'filebadupload' ), $in['error'] );
5334 if ( $in['size'] === 0 )
5340 if ( !preg_match( $def['options']['accept'], $in['type'] ) )
5347 list( $major, $minor ) = explode( '/', $in['type'] );
5355 $data = file_get_contents( $in['tmp_name'] );
5356 if ( strlen( $data ) != $in['size'] )
5361 'name' => $in['name'],
5362 'mime' => $in['type'],
5997 * @param mixed $in value returned from DB