src/controllers/MediaHolderController.php
public function dateFilter() {

		// Apply the from date filter.

		$request = $this->getRequest();
		$from = $request->getVar('from');
		$link = $this->Link();
		$separator = '?';
		if($from) {

			// Determine the formatted URL to represent the request filter.

			$date = DBDate::create()->setValue($from);
			$link .= $date->Format('y/MM/dd/');
		}

		// Preserve the category/tag filters if they exist.

		$category = $request->getVar('category');
		$tag = $request->getVar('tag');
		if($category) {
			$link = HTTP::setGetVar('category', $category, $link, $separator);
			$separator = '&';
		}
		if($tag) {
			$link = HTTP::setGetVar('tag', $tag, $link, $separator);
		}

		// Allow extension customisation.

		$this->extend('updateFilter', $link);

		// Request the filtered paginated children.

		return $this->redirect($link);
	}
public function dateFilter() {

		// Apply the from date filter.

		$request = $this->getRequest();
		$from = $request->getVar('from');
		$link = $this->Link();
		$separator = '?';
		if($from) {

			// Determine the formatted URL to represent the request filter.

			$date = DBDate::create()->setValue($from);
			$link .= $date->Format('y/MM/dd/');
		}

		// Preserve the category/tag filters if they exist.

		$category = $request->getVar('category');
		$tag = $request->getVar('tag');
		if($category) {
			$link = HTTP::setGetVar('category', $category, $link, $separator);
			$separator = '&';
		}
		if($tag) {
			$link = HTTP::setGetVar('tag', $tag, $link, $separator);
		}

		// Allow extension customisation.

		$this->extend('updateFilter', $link);

		// Request the filtered paginated children.

		return $this->redirect($link);
	}
public function dateFilter ( ) { // Apply the from date filter. $ request = $ this -> getRequest ( ) ; $ from = $ request -> getVar ( 'from' ) ; $ link = $ this -> Link ( ) ; $ separator = '?' ; if ( $ from ) { // Determine the formatted URL to represent the request filter. $ date = DBDate :: create ( ) -> setValue ( $ from ) ; $ link .= $ date -> Format ( 'y/MM/dd/' ) ; } // Preserve the category/tag filters if they exist. $ category = $ request -> getVar ( 'category' ) ; $ tag = $ request -> getVar ( 'tag' ) ; if ( $ category ) { $ link = HTTP :: setGetVar ( 'category' , $ category , $ link , $ separator ) ; $ separator = '&' ; } if ( $ tag ) { $ link = HTTP :: setGetVar ( 'tag' , $ tag , $ link , $ separator ) ; } // Allow extension customisation. $ this -> extend ( 'updateFilter' , $ link ) ; // Request the filtered paginated children. return $ this -> redirect ( $ link ) ; }
Request media page children from the filtered date.
Request media page children from the filtered date .