ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
LookupRef.php
Go to the documentation of this file.
1<?php
2
4
15
20{
48 public static function cellAddress($row, $column, $relativity = 1, $referenceStyle = true, $sheetText = '')
49 {
50 return Address::cell($row, $column, $relativity, $referenceStyle, $sheetText);
51 }
52
75 public static function COLUMN($cellAddress = null, ?Cell $cell = null)
76 {
77 return RowColumnInformation::COLUMN($cellAddress, $cell);
78 }
79
98 public static function COLUMNS($cellAddress = null)
99 {
100 return RowColumnInformation::COLUMNS($cellAddress);
101 }
102
125 public static function ROW($cellAddress = null, ?Cell $cell = null)
126 {
127 return RowColumnInformation::ROW($cellAddress, $cell);
128 }
129
148 public static function ROWS($cellAddress = null)
149 {
150 return RowColumnInformation::ROWS($cellAddress);
151 }
152
170 public static function HYPERLINK($linkURL = '', $displayName = null, ?Cell $pCell = null)
171 {
172 return LookupRef\Hyperlink::set($linkURL, $displayName, $pCell);
173 }
174
196 public static function INDIRECT($cellAddress, Cell $pCell)
197 {
198 return Indirect::INDIRECT($cellAddress, true, $pCell);
199 }
200
236 public static function OFFSET($cellAddress = null, $rows = 0, $columns = 0, $height = null, $width = null, ?Cell $pCell = null)
237 {
238 return Offset::OFFSET($cellAddress, $rows, $columns, $height, $width, $pCell);
239 }
240
257 public static function CHOOSE(...$chooseArgs)
258 {
259 return LookupRef\Selection::choose(...$chooseArgs);
260 }
261
282 public static function MATCH($lookupValue, $lookupArray, $matchType = 1)
283 {
284 return LookupRef\ExcelMatch::MATCH($lookupValue, $lookupArray, $matchType);
285 }
286
308 public static function INDEX($matrix, $rowNum = 0, $columnNum = 0)
309 {
310 return Matrix::index($matrix, $rowNum, $columnNum);
311 }
312
328 public static function TRANSPOSE($matrixData)
329 {
330 return Matrix::transpose($matrixData);
331 }
332
351 public static function VLOOKUP($lookup_value, $lookup_array, $index_number, $not_exact_match = true)
352 {
353 return VLookup::lookup($lookup_value, $lookup_array, $index_number, $not_exact_match);
354 }
355
374 public static function HLOOKUP($lookup_value, $lookup_array, $index_number, $not_exact_match = true)
375 {
376 return HLookup::lookup($lookup_value, $lookup_array, $index_number, $not_exact_match);
377 }
378
394 public static function LOOKUP($lookup_value, $lookup_vector, $result_vector = null)
395 {
396 return Lookup::lookup($lookup_value, $lookup_vector, $result_vector);
397 }
398
412 public static function FORMULATEXT($cellReference = '', ?Cell $pCell = null)
413 {
414 return LookupRef\Formula::text($cellReference, $pCell);
415 }
416}
if(! $in) $columns
Definition: Utf8Test.php:45
An exception for terminatinating execution or to throw for unit testing.
static cell($row, $column, $relativity=1, $referenceStyle=true, $sheetName='')
ADDRESS.
Definition: Address.php:40
static MATCH($lookupValue, $lookupArray, $matchType=self::MATCHTYPE_LARGEST_VALUE)
MATCH.
Definition: ExcelMatch.php:31
static text($cellReference='', ?Cell $pCell=null)
FORMULATEXT.
Definition: Formula.php:19
static lookup($lookupValue, $lookupArray, $indexNumber, $notExactMatch=true)
HLOOKUP The HLOOKUP function searches for value in the top-most row of lookup_array and returns the v...
Definition: HLookup.php:24
static INDIRECT($cellAddress, $a1fmt, Cell $pCell)
INDIRECT.
Definition: Indirect.php:63
static lookup($lookupValue, $lookupVector, $resultVector=null)
LOOKUP The LOOKUP function searches for value either from a one-row or one-column range or from an ar...
Definition: Lookup.php:20
static transpose($matrixData)
TRANSPOSE.
Definition: Matrix.php:17
static index($matrix, $rowNum=0, $columnNum=0)
INDEX.
Definition: Matrix.php:55
static OFFSET($cellAddress=null, $rows=0, $columns=0, $height=null, $width=null, ?Cell $pCell=null)
OFFSET.
Definition: Offset.php:43
static COLUMN($cellAddress=null, ?Cell $pCell=null)
COLUMN.
static lookup($lookupValue, $lookupArray, $indexNumber, $notExactMatch=true)
VLOOKUP The VLOOKUP function searches for value in the left-most column of lookup_array and returns t...
Definition: VLookup.php:24
static ROWS($cellAddress=null)
ROWS.
Definition: LookupRef.php:148
static OFFSET($cellAddress=null, $rows=0, $columns=0, $height=null, $width=null, ?Cell $pCell=null)
OFFSET.
Definition: LookupRef.php:236
static INDIRECT($cellAddress, Cell $pCell)
INDIRECT.
Definition: LookupRef.php:196
static HYPERLINK($linkURL='', $displayName=null, ?Cell $pCell=null)
HYPERLINK.
Definition: LookupRef.php:170
static INDEX($matrix, $rowNum=0, $columnNum=0)
INDEX.
Definition: LookupRef.php:308
static HLOOKUP($lookup_value, $lookup_array, $index_number, $not_exact_match=true)
HLOOKUP The HLOOKUP function searches for value in the top-most row of lookup_array and returns the v...
Definition: LookupRef.php:374
static CHOOSE(... $chooseArgs)
CHOOSE.
Definition: LookupRef.php:257
static MATCH($lookupValue, $lookupArray, $matchType=1)
MATCH.
Definition: LookupRef.php:282
static cellAddress($row, $column, $relativity=1, $referenceStyle=true, $sheetText='')
CELL_ADDRESS.
Definition: LookupRef.php:48
static COLUMN($cellAddress=null, ?Cell $cell=null)
COLUMN.
Definition: LookupRef.php:75
static ROW($cellAddress=null, ?Cell $cell=null)
ROW.
Definition: LookupRef.php:125
static COLUMNS($cellAddress=null)
COLUMNS.
Definition: LookupRef.php:98
static TRANSPOSE($matrixData)
TRANSPOSE.
Definition: LookupRef.php:328
static VLOOKUP($lookup_value, $lookup_array, $index_number, $not_exact_match=true)
VLOOKUP The VLOOKUP function searches for value in the left-most column of lookup_array and returns t...
Definition: LookupRef.php:351
static FORMULATEXT($cellReference='', ?Cell $pCell=null)
FORMULATEXT.
Definition: LookupRef.php:412
static LOOKUP($lookup_value, $lookup_vector, $result_vector=null)
LOOKUP The LOOKUP function searches for value either from a one-row or one-column range or from an ar...
Definition: LookupRef.php:394
$matrix
Definition: test.php:18
$row
$rows
Definition: xhr_table.php:10