Lines Matching refs:value

292      * @param  string       $value        String (Property value)
297 protected static function adjustPercentageValueParts ($value, $maxWidthInPt, $units) { argument
298 $values = preg_split ('/\s+/', $value);
299 $value = '';
309 $value .= ' '.$part;
311 $value = trim($value);
312 $value = trim($value, '"');
314 return $value;
353 foreach ($properties as $property => $value) {
354 $properties [$property] = self::adjustValueForODT ($property, $value, $units);
414 * @param string $value The value
418 public static function adjustValueForODT ($property, $value, ODTUnits $units) { argument
422 $value = trim($value, '"');
423 if (strpos($value, ',') !== false) {
424 $values = explode(',', $value);
425 $value = trim ($values [0], '"');
426 $value = trim ($value, "'");
427 $value = trim ($value);
430 $values = preg_split ('/\s+/', $value);
431 $value = '';
460 $value .= ' '.$part;
462 $value = trim($value);
463 $value = trim($value, '"');
466 return $value;
589 * @param string $value String to be converted to IRI
592 public static function stringToIRI ($value) { argument
593 $max = strlen ($value);
595 switch ($value [$pos]) {
598 $value [$pos+1] == '#' &&
599 $value [$pos+2] == '3' &&
600 $value [$pos+3] == '8' &&
601 $value [$pos+4] == ';') {
603 $value [$pos+1] = 'a';
604 $value [$pos+2] = 'm';
605 $value [$pos+3] = 'p';
608 $value [$pos+1] != 'a' ||
609 $value [$pos+2] != 'm' ||
610 $value [$pos+3] != 'p' ||
611 $value [$pos+4] != ';' ) {
613 $new = substr($value, 0, $pos+1);
615 $new .= substr($value, $pos+1);
616 $value = $new;
623 return $value;