public function __construct(\Icybee\ManageBlock $manager, $id, array $options = array()) { parent::__construct($manager, $id, array('title' => 'Popularity', 'class' => 'pull-right', 'orderable' => true)); }
public function __construct(\Icybee\Modules\Images\Albums\ManageBlock $manager, $id, array $options = array()) { parent::__construct($manager, $id, $options + array('title' => 'Photos')); }
public function __construct(\Icybee\Modules\Users\ManageBlock $manager, $id, array $options = array()) { parent::__construct($manager, $id, array('class' => 'pull-right cell-fitted', 'orderable' => true)); }
public function __construct(\Icybee\ManageBlock $manager, $id, array $options = array()) { parent::__construct($manager, $id, $options + array('discreet' => true)); }
public function alter_records(array $records) { $records = parent::alter_records($records); $this->resolve_translations($records); return $records; }
public function __construct(\Icybee\ManageBlock $manager, $id, array $options = array()) { parent::__construct($manager, $id, array('orderable' => false)); }
/** * Includes the users associated with the records. */ public function alter_records(array $records) { global $core; $records = parent::alter_records($records); $keys = []; foreach ($records as $record) { $keys[] = $record->{$this->id}; } if ($keys) { $keys = array_unique($keys, SORT_NUMERIC); try { $this->user_cache = $core->models['users']->find($keys); } catch (RecordNotFound $e) { $this->user_cache = $e->records; } } return $records; }