Pagination "Previous" link

@param	string $value optional text to display in the link

@return	string	Markup for the 'previous' page number link
548875
public function previous($marker = null)
	{
		$html = '';

		$marker === null and $marker = $this->template['previous-marker'];

		if ($this->config['total_pages'] > 1)
		{
			if ($this->config['calculated_page'] == 1)
			{
				$html = str_replace(
				    '{link}',
				    str_replace(array('{uri}', '{page}'), array('#', $marker), $this->template['previous-inactive-link']),
				    $this->template['previous-inactive']
				);
				$this->raw_results['previous'] = array('uri' => '#', 'title' => $marker, 'type' => 'previous-inactive');
			}
			else
			{
				$previous_page = $this->config['calculated_page'] - 1;
				$previous_page = ($previous_page == 1) ? '' : $previous_page;

				$html = str_replace(
				    '{link}',
				    str_replace(array('{uri}', '{page}'), array($this->_make_link($previous_page), $marker), $this->template['previous-link']),
				    $this->template['previous']
				);
				$this->raw_results['previous'] = array('uri' => $this->_make_link($previous_page), 'title' => $marker, 'type' => 'previous');
			}
		}

		return $html;
	}
108299
public static function realUrl(string $value)
    {
        list($scheme, $url) = explode('//', $value);
        $reverse = explode('/', $url);
        $arr = [];
        foreach ($reverse as $item) {
            $arr[] = $item;
            if ($item == '..') {
                array_pop($arr);    // remove 2x from array stack
                array_pop($arr);
            }
        }
        return $scheme . '//' . implode('/', $arr);
    }
488718
protected function cleanupParam($value)
    {
        if (is_array($value)) {
            foreach ($value as $k => $v) {
                $clean = $this->cleanupParam($v);
                if (!is_null($clean)) {
                    $value[$k] = $clean;
                }
            }

            return $value;
        } else {
            return preg_replace('/>/', '', preg_replace('/</', '', $value));
        }
    }
943738
public function displayValue( $value )
    {
        if ( $this->getUseRegularExpression() )
        {
            return preg_replace( $this->getFrom(), $this->getTo(), $value );
        }
        else
        {
            return str_replace( $this->getFrom(), $this->getTo(), $value );
        }
    }
872904
public function formatValue($value)
    {
        $formatter = $this->getValueFormatter();
        return (string)($formatter ? call_user_func($formatter, $value, $this->getGrid()->getCurrentRow()) : $value);
    }
954647
public function PrevLink()
    {
        if ($this->NotFirstPage()) {
            return HTTP::setGetVar(
                $this->getPaginationGetVar(),
                $this->getPageStart() - $this->getPageLength(),
                ($this->request instanceof HTTPRequest) ? $this->request->getURL(true) : null
            );
        }
    }
9145
public function setCurrent($value)
    {
        if (!StaticValidator::isValid('number', $value)) {
            return $this;
        }

        $this->_current = StaticFilter::filter('number',$value);
        $this->_offset = $this->_rowsPerPage * ($this->_current - 1);
        return $this;
    }
568941
public function setLink(?string $value) : Log
    {

        if ($this->data['link'] !== $value) {
            $this->data['link'] = $value;
            $this->setModified('link');
        }

        return $this;
    }
330563
public function previous($html, $html2 = '')
    {
        # Only show if you are not on page 1, otherwise show HTML2
        $r = ($this->get != 1) ? str_replace('{nr}', $this->get - 1, $html) : str_replace('{nr}', $this->get - 1, $html2);

        return $r;
    }
76445
public function PageName($Value = NULL) {
      if ($Value !== NULL) {
         $this->_PageName = $Value;
         return $Value;
      }

      if ($this->_PageName === NULL) {
         if ($this->ControllerName)
            $Name = $this->ControllerName;
         else
            $Name = get_class($this);
         $Name = strtolower($Name);
         
         if (StringEndsWith($Name, 'controller', FALSE))
            $Name = substr($Name, 0, -strlen('controller'));

         return $Name;
      } else {
         return $this->_PageName;
      }
   }
942828
private function getValue($value)
    {
        if (!is_string($value)) {
            return $value;
        }

        if ($value[0] != '%' || $value[strlen($value) - 1] != '%')  {
            return $value;
        }

        $parameter = trim($value, '%');
        if ($this->container->hasParameter($parameter)) {
            return $this->container->getParameter($parameter);
        }

        return $value;
    }
1370487
public function getEasyMarkup(){

        $markup = '';

        if($this->prevUrl){
            $markup .= "<li class='pagination-previous' title='View previous page'><a href='{$this->prevUrl}'>prev</a></li>";
        }//if

        $pages = $this->getPrevUrls(5);

        foreach($pages as $i => $page){
            $markup .= "<li><a href='{$page}' title='View page {$i} of {$this->totalPages}'>{$i}</a></li>";
        }//foreach

        if($this->totalPages){
            $markup .= "<li class='current' title='Your viewing page {$this->currentPage} of {$this->totalPages}'><a>{$this->currentPage}</a></li>";
        }//if

        $pages = $this->getNextUrls(5);

        foreach($pages as $i => $page){
            $markup .= "<li><a href='{$page}' title='View page {$i} of {$this->totalPages}'>{$i}</a></li>";
        }//foreach

        if($this->nextUrl){
            $markup .= "<li class='pagination-next' title='View next page'><a href='{$this->nextUrl}'>next</a></li>";
        }//if

        return "<ul class='pagination'>{$markup}</ul>";

    }
94165
public function renderPreviousLink($pageNumber, $content = '')
    {
        //generate previous link
        if ($pageNumber > 1) {
            $content .= "<a href='".$this->currentPageUrl.'/'.$this->previous."'> previous</a>";
        } else {
            $content .= "<span class='disabled'> previous</span>";
        }

        return $content;
    }
157323
public static function toUnderlineString($value)
    {
        $str = preg_replace_callback("/([A-Z]{1})/",function($matches){
            return "_".strtolower($matches[0]);
        },$value);
        if(strpos($str, "_")===0){
            $str=substr($str, 1);
        }
        return $str;
    }
129063
public function prevPage()
    {
        $page = (int)$this->getOption('page', 1);

        if ($page > 1) {
            $prev = Html::a($this->text['prev'], $this->getUrl($this->prevPage));

            $prev = $this->hasListElement($prev);
        }

        $this->html['prev'] = isset($prev) ? $prev : '';

        return $this;
    }
358865
public function setCorePhpthumbNohotlinkEnabled($value)
    {
        $this->setFieldName('phpthumb_nohotlink_enabled');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
424245
static public function urlencode($value)
    {
        if (is_string($value)) {
            return urlencode($value);
        } elseif (is_array($value)) {
            foreach ($value as $k => $v) {
                $value[$k] = static::urlencode($v);
            }
        }
        return $value;
    }