deprecated/classes/Pods.php
public function findRecords( $orderby = null, $rows_per_page = 15, $where = null, $sql = null ) {

		if ( Pod::$deprecated_notice ) {
			pods_deprecated( 'Pods::findRecords', '2.0', 'Pods::find' );
		}

		$find = array(
			' p.created',
			'`p`.`created`',
			'`p`.created',
			' p.`created`',
			' p.modified',
			'`p`.`modified`',
			'`p`.modified',
			' p.`modified`',
			' p.id',
			'`p`.`id`',
			'`p`.id',
			' p.`id`',
			' p.pod_id',
			'`p`.`pod_id`',
			'`p`.pod_id',
			' p.`pod_id`',
		);

		$replace = array(
			' t.created',
			'`t`.`created`',
			'`t`.created',
			' t.`created`',
			' t.modified',
			'`t`.`modified`',
			'`t`.modified',
			' t.`modified`',
			' t.id',
			'`t`.`id`',
			'`t`.id',
			' t.`id`',
			' t.id',
			'`t`.`id`',
			'`t`.id',
			' t.`id`',
		);

		$params = array(
			'where'               => $where,
			'orderby'             => "`t`.`{$this->obj->data->field_id}` DESC",
			'limit'               => (int) $rows_per_page,
			'page'                => $this->obj->page,
			'search'              => $this->obj->search,
			'search_across'       => true,
			'search_across_picks' => false,
			'sql'                 => $sql,
		);

		if ( is_array( $orderby ) ) {
			$params = array_merge( $params, $orderby );
		} elseif ( ! empty( $orderby ) ) {
			$params['orderby'] = $orderby;
		}

		$params['where']   = trim( str_replace( $find, $replace, ' ' . $params['where'] ) );
		$params['orderby'] = trim( str_replace( $find, $replace, ' ' . $params['orderby'] ) );

		$params = (object) $params;

		$this->obj->limit  = $params->limit;
		$this->obj->page   = $params->page;
		$this->obj->search = $params->search;

		return $this->obj->find( $params );
	}
public function findRecords( $orderby = null, $rows_per_page = 15, $where = null, $sql = null ) {

		if ( Pod::$deprecated_notice ) {
			pods_deprecated( 'Pods::findRecords', '2.0', 'Pods::find' );
		}

		$find = array(
			' p.created',
			'`p`.`created`',
			'`p`.created',
			' p.`created`',
			' p.modified',
			'`p`.`modified`',
			'`p`.modified',
			' p.`modified`',
			' p.id',
			'`p`.`id`',
			'`p`.id',
			' p.`id`',
			' p.pod_id',
			'`p`.`pod_id`',
			'`p`.pod_id',
			' p.`pod_id`',
		);

		$replace = array(
			' t.created',
			'`t`.`created`',
			'`t`.created',
			' t.`created`',
			' t.modified',
			'`t`.`modified`',
			'`t`.modified',
			' t.`modified`',
			' t.id',
			'`t`.`id`',
			'`t`.id',
			' t.`id`',
			' t.id',
			'`t`.`id`',
			'`t`.id',
			' t.`id`',
		);

		$params = array(
			'where'               => $where,
			'orderby'             => "`t`.`{$this->obj->data->field_id}` DESC",
			'limit'               => (int) $rows_per_page,
			'page'                => $this->obj->page,
			'search'              => $this->obj->search,
			'search_across'       => true,
			'search_across_picks' => false,
			'sql'                 => $sql,
		);

		if ( is_array( $orderby ) ) {
			$params = array_merge( $params, $orderby );
		} elseif ( ! empty( $orderby ) ) {
			$params['orderby'] = $orderby;
		}

		$params['where']   = trim( str_replace( $find, $replace, ' ' . $params['where'] ) );
		$params['orderby'] = trim( str_replace( $find, $replace, ' ' . $params['orderby'] ) );

		$params = (object) $params;

		$this->obj->limit  = $params->limit;
		$this->obj->page   = $params->page;
		$this->obj->search = $params->search;

		return $this->obj->find( $params );
	}
public function findRecords ( $ orderby = null , $ rows_per_page = 15 , $ where = null , $ sql = null ) { if ( Pod :: $ deprecated_notice ) { pods_deprecated ( 'Pods::findRecords' , '2.0' , 'Pods::find' ) ; } $ find = array ( ' p.created' , '`p`.`created`' , '`p`.created' , ' p.`created`' , ' p.modified' , '`p`.`modified`' , '`p`.modified' , ' p.`modified`' , ' p.id' , '`p`.`id`' , '`p`.id' , ' p.`id`' , ' p.pod_id' , '`p`.`pod_id`' , '`p`.pod_id' , ' p.`pod_id`' , ) ; $ replace = array ( ' t.created' , '`t`.`created`' , '`t`.created' , ' t.`created`' , ' t.modified' , '`t`.`modified`' , '`t`.modified' , ' t.`modified`' , ' t.id' , '`t`.`id`' , '`t`.id' , ' t.`id`' , ' t.id' , '`t`.`id`' , '`t`.id' , ' t.`id`' , ) ; $ params = array ( 'where' => $ where , 'orderby' => "`t`.`{$this->obj->data->field_id}` DESC" , 'limit' => ( int ) $ rows_per_page , 'page' => $ this -> obj -> page , 'search' => $ this -> obj -> search , 'search_across' => true , 'search_across_picks' => false , 'sql' => $ sql , ) ; if ( is_array ( $ orderby ) ) { $ params = array_merge ( $ params , $ orderby ) ; } elseif ( ! empty ( $ orderby ) ) { $ params [ 'orderby' ] = $ orderby ; } $ params [ 'where' ] = trim ( str_replace ( $ find , $ replace , ' ' . $ params [ 'where' ] ) ) ; $ params [ 'orderby' ] = trim ( str_replace ( $ find , $ replace , ' ' . $ params [ 'orderby' ] ) ) ; $ params = ( object ) $ params ; $ this -> obj -> limit = $ params -> limit ; $ this -> obj -> page = $ params -> page ; $ this -> obj -> search = $ params -> search ; return $ this -> obj -> find ( $ params ) ; }
Search and filter records

@since 1.x.x
@deprecated 2.0.0

@param null $orderby
@param int  $rows_per_page
@param null $where
@param null $sql

@return
Search and filter records