reset() public method

Reset the current data
Since: 2.0
public reset ( integer $row = null ) : mixed
$row integer Row number to reset to
return mixed
Exemplo n.º 1
0
 /**
  * (Re)set the MySQL result pointer
  *
  * @see PodsData::reset
  *
  * @param int $row ID of the row to reset to
  *
  * @return \Pods The pod object
  *
  * @since 2.0
  * @link http://pods.io/docs/reset/
  */
 public function reset($row = null)
 {
     /**
      * Runs directly before the Pods object is reset by reset()
      *
      * @since unknown
      *
      * @param int|string|null The ID of the row being reset to or null if being reset to the beginningg.
      * @param object|Pods $this Current Pods object.
      */
     do_action('pods_pods_reset', $row, $this);
     $this->data->reset($row);
     return $this;
 }
Exemplo n.º 2
0
 /**
  * (Re)set the MySQL result pointer
  *
  * @see PodsData::reset
  *
  * @param int $row ID of the row to reset to
  *
  * @return \Pods The pod object
  *
  * @since 2.0
  * @link http://pods.io/docs/reset/
  */
 public function reset($row = null)
 {
     $this->do_hook('reset', $row);
     $this->data->reset($row);
     return $this;
 }