\Cxj@(#6htCxj@o:sQ# Cxl@Xfz2#Cxl@\$s#/Cxm@fHj #vԅCxm@!9N#m,Cxm@2J^#?Cxm@`#(Cxm@Vnt#w4Cxm@[R#rqLCxn@| v#-dCxn@0P #0|Cxn@]!#0Cxn@xe#gvCxn@(aS7#FĆCxn@Z#DH܆Cxo@e #PCxo@{<# Cxp@cv#b$Cxp@8H`J#'p{ #%-DCxs@ iSC#>*\Cxt@o~ #>0tCxu@68O#?Cxv@#-j̍Cx@F#TCx@m ##+Cx@<#ECx@O'#-),Cx@ϳH#hDCx@ϳH#h\Cx@ϳH#htCx@ϳH#hCx@_#  Cx@P# Cx@aV#ԎCx@Hk#h`Cx@*A@#.Cx@#Cx@Z# %4Cx@T#ELCx@e #l:dCx@"#(1|Cx@S&L# 3 Cx@*#Cx@3H# %ďCx@Nv# ܏Cx@/#Cx@@H## Cx@(@# w$Cx@(@# v#TCx@ڷ# lCx@ r*#@Cx@#dCx@5eD#%Cx@">#̖Cx@|##^Cx@;>#@Cx@#MCx@($#,Cx@u!C#1DCx@ǏN#[\Cx@b#+tCx@n6#7aCx@#[Cx@3 #[Cx@H!#;GԗCx@Vjl(#intIndex < 0) { $this->first(); } return $this->arrModels[$this->intIndex]->getRelated($strKey); } /** * Return the number of rows in the result set * * @return integer The number of rows */ #[\ReturnTypeWillChange] public function count() { return \count($this->arrModels); } /** * Go to the first row * * @return static The model collection object */ public function first() { $this->intIndex = 0; return $this; } /** * Go to the previous row * * @return Collection|false The model collection object or false if there is no previous row */ public function prev() { if ($this->intIndex < 1) { return false; } --$this->intIndex; return $this; } /** * Return the current model * * @return Model The model object */ public function current() { if ($this->intIndex < 0) { $this->first(); } return $this->arrModels[$this->intIndex]; } /** * Go to the next row * * @return Collection|false The model collection object or false if there is no next row */ public function next() { if (!isset($this->arrModels[$this->intIndex + 1])) { return false; } ++$this->intIndex; return $this; } /** * Go to the last row * * @return static The model collection object */ public function last() { $this->intIndex = \count($this->arrModels) - 1; return $this; } /** * Reset the model * * @return static The model collection object */ public function reset() { $this->intIndex = -1; return $this; } /** * Fetch a column of each row * * @param string $strKey The property name * * @return array An array with all property values */ public function fetchEach($strKey) { $this->reset(); $return = array(); while ($this->next()) { $strPk = $this->current()->getPk(); if ($strKey != 'id' && isset($this->$strPk)) { $return[$this->$strPk] = $this->$strKey; } else { $return[] = $this->$strKey; } } return $return; } /** * Fetch all columns of every row * * @return array An array with all rows and columns */ public function fetchAll() { $this->reset(); $return = array(); while ($this->next()) { $return[] = $this->row(); } return $return; } /** * Check whether an offset exists * * @param integer $offset The offset * * @return boolean True if the offset exists */ #[\ReturnTypeWillChange] public function offsetExists($offset) { return isset($this->arrModels[$offset]); } /** * Retrieve a particular offset * * @param integer $offset The offset * * @return Model|null The model or null */ #[\ReturnTypeWillChange] public function offsetGet($offset) { return $this->arrModels[$offset]; } /** * Set a particular offset * * @param integer $offset The offset * @param mixed $value The value to set * * @throws \RuntimeException The collection is immutable */ #[\ReturnTypeWillChange] public function offsetSet($offset, $value) { throw new \RuntimeException('This collection is immutable'); } /** * Unset a particular offset * * @param integer $offset The offset * * @throws \RuntimeException The collection is immutable */ #[\ReturnTypeWillChange] public function offsetUnset($offset) { throw new \RuntimeException('This collection is immutable'); } /** * Retrieve the iterator object * * @return \ArrayIterator The iterator object */ #[\ReturnTypeWillChange] public function getIterator() { return new \ArrayIterator($this->arrModels); } } class_alias(Collection::class, 'Model\Collection'); An Error Occurred: Internal Server Error

Oops! An Error Occurred

The server returned a "500 Internal Server Error".

Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.