@param bool $paging
@param bool $append

@return $this
512994
public function paging($paging = true, $append = true)
    {
        if ($paging === false && $append === false) {
            //TODO: exception
        }

        $this->paging = $paging;
        $this->append = $append;

        return $this;
    }
598703
protected function add($sqlPartName, $sqlPart, $append = false)
    {
        $this->isDirty = true;

        if (self::$multipleParts[$sqlPartName]) {
            if ($append) {
                $this->sqlParts[$sqlPartName][] = $sqlPart;
            } else {
                $this->sqlParts[$sqlPartName] = array($sqlPart);
            }
        } else {
            $this->sqlParts[$sqlPartName] = $sqlPart;
        }

        return $this;
    }
353967
public function setHtml(string $html=null, bool $append=true) :self {
		// append by default or replace html
		$this->content = $append ? $this->content . $html : $html;
		// return self
		return($this);
	}
253907
public function appendPageContent(string $str): PdfInterface
    {
        $this->setProperty('pageContent', $str);
        $this->mpdf->WriteHTML($this->pageContent);

        return $this;
    }
1160676
function _append($data)
    {
        if ($this->_using_tmpfile) {
            // Add CONTINUE records if necessary
            if (strlen($data) > $this->_limit) {
                $data = $this->_addContinue($data);
            }
            fwrite($this->_filehandle, $data);
            $this->_datasize += strlen($data);
        } else {
            parent::_append($data);
        }
    }
590826
public function Message($msg = '', $append = false)
    {
        if (is_null($msg)) {
            $this->_msg = array();
        } elseif (is_array($msg)) {
            if ($append) {
                $this->_msg = array_merge($this->_msg, $msg);
            } else {
                $this->_msg = $msg;
            }
            return $this->_msg;
        }
        return $this->_msg;
    }
612901
public function where($con, $append = true) {
        if (is_array($con) && !empty ($con)) {
            $con = new Condition ($con, $this->alias);
        }
        if ($con) {
            if ($append && $this->where) {
                $this->where [] = $con;
            } else {
                $this->performed = false;
                $this->sql       = null;
                $this->where     = $con;
            }
        }

        return $this;
    }
1256909
public function append($content, $create = false)
    {

        if ($this->writeable !== true || empty($content)) return false;

        if (strpos($this->_option, 'a') === false) {
            // close open filepoint
            if (!empty($this->fp)) fclose($this->fp);
            // opens fp for writing with file lock
            $this->open_fp((is_bool($create) && $create === true ? 'a+' : 'a'));
        }

        if ($this->file_lock !== true && !$this->lock(LOCK_EX)) return false;

        // writes to file
        fputs($this->fp, $content, strlen($content));
        // releases lock
        $this->lock(LOCK_UN);

        return true;
    }
1190338
public function addAsyncJsUrl(string $src, bool $prepend = false) {
		$this->htmlProperties->add(self::HEAD_SCRIPT_KEY, 'type:javascript:src:' . $src,
				new HtmlElement('script', array(/*'type' => 'text/javascript'*/),
						"\r\n" . '//<![CDATA[' . "\r\n" . '(function() {var b=document.createElement("script");b.type="text/javascript";b.async=true;b.src="' .
						addslashes($src) . '";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(b,a)})();' . "\r\n" . '//]]>' . "\r\n"),
				$prepend);
		
		return $this;
	}
804498
private function addPagination(Search $search, $pageSize, $page, $limit)
    {
        $offset = 0;
        if ($pageSize) {
            $pageSize = intval($pageSize);
            $offset = ($page - 1) * $pageSize;
        }

        if (null === $limit) {
            $limit = $this->defaultLimit;
        }

        if (null === $pageSize || $offset + $pageSize > $limit) {
            $pageSize = $limit - $offset;

            if ($pageSize < 0) {
                $pageSize = 0;
            }
        }

        $search->setFrom($offset);
        $search->setSize($pageSize);
    }
233597
public function appendPages($pages = array())
    {
        $iCur = $this->data['i'];
        if (isset($this->data['pages'][$iCur])) {
            $pageCount = \count($this->data['pages']);
            $range = \range($pageCount, $pageCount+\count($pages)-1);
            $this->data['pages'][$iCur]['addPages'] = \array_merge($this->data['pages'][$iCur]['addPages'], $range);
        }
        foreach ($pages as $pageName) {
            $this->data['pages'][] = array(
                'name' => $pageName,
                'completed' => false,
                'values' => array(),
                'addPages' => array(),
            );
        }
    }
174387
public function paginate($perPage)
    {
        if (\filter_var($perPage, FILTER_VALIDATE_INT, ['options' => ['min_range' => 1]]) && ! \is_bool($perPage)) {
            $this->perPage = $perPage;
            $this->paginate = true;
        } elseif (\filter_var($perPage, FILTER_VALIDATE_BOOLEAN)) {
            $this->perPage = null;
            $this->paginate = $perPage;
        } else {
            $this->perPage = null;
            $this->paginate = false;
        }

        return $this;
    }
87981
public function addPageQuery($url, $page, $full = false)
    {
        // If the first page's URL is requested and $full is set to false, there's nothing to be added.
        if ($page === 1 && ! $full) {
            return $url;
        }

        return trim($url, '/')."/{$this->pageKeyword}/{$page}";
    }
1306393
public function addPage(PagingPage $page)
    {
        if (!in_array($page, $this->pages, true)) {
            array_push($this->pages, $page);
        }
        return $this;
    }
697526
public function addWithOption($key, $option, $value, $append = true)
    {
        if (!isset($this->container[$key])) {
            $this->container[$key] = array(
                $option => $value
            );

        } else {
            // Option already exists, so now depending on $append 
            if ($append === true) {
                $this->container[$key][$option] = $value;
            }
        }

        return $this;
    }
1281609
public function addSearchPath($paths, $append = false)
    {
        settype($paths, 'array');

        foreach ($paths as $path) {
            if (empty($path)) {
                continue;
            }

            if (in_array($path, $this->_search_paths)) {
                continue;
            }

            if ($append) {
                $this->_search_paths[] = $path;
            } else {
                array_unshift($this->_search_paths, $path);
            }
        }
    }
1152460
public function sendOutputTo($location, $append = false)
    {
        $this->output = $location;

        $this->shouldAppendOutput = $append;

        return $this;
    }