heristop/propel-senchagridable-behavior

Propel behavior to automatically add filters for Sencha / ExtJS grids

Maintainers

Package info

github.com/heristop/SenchagridableBehavior

Issues

pkg:composer/heristop/propel-senchagridable-behavior

Statistics

Installs: 74

Dependents: 0

Suggesters: 0

Stars: 2

1.0.0 2014-02-06 23:52 UTC

This package is not auto-updated.

Last update: 2026-03-10 08:35:12 UTC


README

Installation

Download the SenchagridableBehavior.php file in src/, put it somewhere on your project, then add the following line to your propel.ini:

propel.behavior.senchagridable.class = path.to.SenchagridableBehavior

Or use composer adding the requirement below:

{
    "require": {
        "heristop/propel-senchagridable-behavior": "*"
    }
}

Usage

Add this line to your schema.xml:

<behavior name="senchagridable" />

The Behavior will add several methods to the Query class:

public function paginateGrid($params)
public function addGridSortQuery($params)
public function addGridFiltersQuery($params)

The variable $params contains the parameters retrieved from the request:

$request = $this->get('request');
$posts = PostQuery::create()->paginateGrid($request->query);