web/wp-content/plugins/caldera-forms/classes/entry/entries.php
/**
	 * Populates the entries property of this class with arrays per status and per page as needed.
	 *
	 * @since 1.4.0
	 */
Populates the entries property of this class with arrays per status and per page as needed.
Populates the entries property of this class with arrays per status and per page as needed .
protected function prepare_entries_prop() {
		foreach ( $this->statuses as $status ) {
			$total                    = $this->query_total( $status );
			$this->totals[ $status ]  = $total;
			$pages                    = ceil( $total / $this->perpage );
			$this->entries[ $status ] = array();
			if ( 1 >= $pages ) {
				$this->entries[ $status ] = array( 1 => array() );
			} else {
				$this->entries[ $status ] = array_fill( 1, $pages, array() );
			}
		}
	}
protected function prepare_entries_prop ( ) { foreach ( $ this -> statuses as $ status ) { $ total = $ this -> query_total ( $ status ) ; $ this -> totals [ $ status ] = $ total ; $ pages = ceil ( $ total / $ this -> perpage ) ; $ this -> entries [ $ status ] = array ( ) ; if ( 1 >= $ pages ) { $ this -> entries [ $ status ] = array ( 1 => array ( ) ) ; } else { $ this -> entries [ $ status ] = array_fill ( 1 , $ pages , array ( ) ) ; } } }
Populates the entries property of this class with arrays per status and per page as needed.
Populates the entries property of this class with arrays per status and per page as needed .