Skip to content

Instantly share code, notes, and snippets.

View RiverVanRain's full-sized avatar

Nikolai Shcherbin RiverVanRain

View GitHub Profile
class ElggWire extends ElggObject {
/**
* Set subtype to thewire
*
* @return void
*/
protected function initializeAttributes() {
parent::initializeAttributes();
@RiverVanRain
RiverVanRain / pagination
Created April 27, 2015 20:32
Pagination from Elgg 1.9 for Elgg 1.8
<?php
/**
* Elgg pagination
*
* @package Elgg
* @subpackage Core
*
* @uses int $vars['offset'] The offset in the list
* @uses int $vars['limit'] Number of items per page
* @uses int $vars['count'] Number of items in list