Lines Matching full:value

33 …'desc'   => 'returns the color value for a given CSS color name. Returns "#000000" if the name is …
35 'return' => array('color value' => 'string'),
41 * Strips of the leading digits from $value. So left over will be the unit only.
43 * @param int $value The length value string, e.g. '1cm'.
44 * @return string The unit of $value, e.g. 'cm'
46 public static function stripDigits ($value) { argument
47 return ODTUnits::stripDigits ($value);
51 * Gets only the digits from $value without the unit.
53 * @param string|int $value The length value string, e.g. '1cm'.
54 * @return string The digits of $value, e.g. '1'
56 public static function getDigits ($value) { argument
57 return ODTUnits::getDigits ($value);
71 * Checks if length value string $value has a valid XSL unit.
73 * @param string|int $value The length value string, e.g. '1cm'.
76 public static function hasValidXSLUnit($value) { argument
77 return ODTUnits::hasValidXSLUnit($value);
83 * @param int $value The value to be set.
85 public function setPixelPerEm ($value) { argument
86 $this->internal->setPixelPerEm ($value);
92 * @return int The current value.
101 * @param int $value The value to be set.
103 public function setTwipsPerPixelX ($value) { argument
104 $this->internal->setTwipsPerPixelX ($value);
110 * @param int $value The value to be set.
112 public function setTwipsPerPixelY ($value) { argument
113 $this->internal->setTwipsPerPixelY ($value);
119 * @return int The current value.
128 * @return int The current value.
137 * @param string|int $pixel String with pixel length value, e.g. '20px'
138 * @return string The current value.
147 * @param string|int $pixel String with pixel length value, e.g. '20px'
148 * @return string The current value.
155 * Convert length value with valid XSL unit to points.
157 * @param string $value String with length value, e.g. '20px', '20cm'...
158 … * @param string $axis Is the value to be converted a value on the X or Y axis? Default is 'y'.
160 * @return string The current value.
162 public function toPoints ($value, $axis = 'y') { argument
163 return $this->internal->toPoints ($value, $axis);