Lines Matching refs:value
114 function parse($value) { argument
115 if ($value === 'inherit') {
121 $value = strtolower($value);
123 if ($value === 'baseline') { return VA_BASELINE; };
124 if ($value === 'sub') { return VA_SUB; };
125 if ($value === 'super') { return VA_SUPER; };
126 if ($value === 'top') { return VA_TOP; };
127 if ($value === 'middle') { return VA_MIDDLE; };
131 if ($value === 'center') { return VA_MIDDLE; }
133 if ($value === 'bottom') { return VA_BOTTOM; };
134 if ($value === 'text-top') { return VA_TEXT_TOP; };
135 if ($value === 'text-bottom') { return VA_TEXT_BOTTOM; };
139 function value2pdf($value) { argument
140 if ($value === VA_SUPER) { return new VerticalAlignSuper; }
141 if ($value === VA_SUB) { return new VerticalAlignSub; }
142 if ($value === VA_TOP) { return new VerticalAlignTop; }
143 if ($value === VA_MIDDLE) { return new VerticalAlignMiddle; }
144 if ($value === VA_BOTTOM) { return new VerticalAlignBottom; }
145 if ($value === VA_BASELINE) { return new VerticalAlignBaseline; }
146 if ($value === VA_TEXT_TOP) { return new VerticalAlignTextTop; }
147 if ($value === VA_TEXT_BOTTOM) { return new VerticalAlignTextBottom; }