src/ZfTable/Params/AdapterArrayObject.php 1 location
|
@@ 66-75 (lines=10) @@
|
| 63 |
|
const DEFAULT_ITEM_COUNT_PER_PAGE = 2; |
| 64 |
|
|
| 65 |
|
|
| 66 |
|
public function __construct($object) |
| 67 |
|
{ |
| 68 |
|
if ($object instanceof \ArrayObject) { |
| 69 |
|
$this->object = $object; |
| 70 |
|
} elseif ($object instanceof \Zend\Stdlib\ArrayObject) { |
| 71 |
|
$this->object = $object; |
| 72 |
|
} else { |
| 73 |
|
throw new Exception\InvalidArgumentException('parameter must be instance of ArrayObject'); |
| 74 |
|
} |
| 75 |
|
} |
| 76 |
|
|
| 77 |
|
/** |
| 78 |
|
* Init method |
src/ZfTable/Params/AdapterDataTables.php 1 location
|
@@ 58-67 (lines=10) @@
|
| 55 |
|
const DEFAULT_ORDER = 'asc'; |
| 56 |
|
const DEFAULT_ITEM_COUNT_PER_PAGE = 2; |
| 57 |
|
|
| 58 |
|
public function __construct($object) |
| 59 |
|
{ |
| 60 |
|
if ($object instanceof \ArrayObject) { |
| 61 |
|
$this->object = $object; |
| 62 |
|
} elseif ($object instanceof \Zend\Stdlib\ArrayObject) { |
| 63 |
|
$this->object = $object; |
| 64 |
|
} else { |
| 65 |
|
throw new Exception\InvalidArgumentException('parameter must be instance of ArrayObject'); |
| 66 |
|
} |
| 67 |
|
} |
| 68 |
|
|
| 69 |
|
/** |
| 70 |
|
* Init method |
src/ZfTable/Params/AdapterNewDatatables.php 1 location
|
@@ 60-69 (lines=10) @@
|
| 57 |
|
const DEFAULT_ORDER = 'asc'; |
| 58 |
|
const DEFAULT_ITEM_COUNT_PER_PAGE = 2; |
| 59 |
|
|
| 60 |
|
public function __construct($object) |
| 61 |
|
{ |
| 62 |
|
if ($object instanceof \ArrayObject) { |
| 63 |
|
$this->object = $object; |
| 64 |
|
} elseif ($object instanceof \Zend\Stdlib\ArrayObject) { |
| 65 |
|
$this->object = $object; |
| 66 |
|
} else { |
| 67 |
|
throw new Exception\InvalidArgumentException('parameter must be instance of ArrayObject'); |
| 68 |
|
} |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
/** |
| 72 |
|
* Init method |