PHP 클래스 BaseAdminController

상속: extends Controller
파일 보기 프로젝트 열기: openeyes/openeyes 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$items_per_page
$layout

공개 메소드들

메소드 설명
accessRules ( )

보호된 메소드들

메소드 설명
beforeAction ( $action )
genericAdmin ( string $title, string $model, array $options = [], integer $key = null ) Allows generic CRUD operations on models.
initPagination ( class $model, string $criteria = null ) : CPagination

비공개 메소드들

메소드 설명
addFilterCriteria ( CDbCriteria $crit, array $filter_fields )

메소드 상세

accessRules() 공개 메소드

public accessRules ( )

beforeAction() 보호된 메소드

protected beforeAction ( $action )

genericAdmin() 보호된 메소드

Allows generic CRUD operations on models.
protected genericAdmin ( string $title, string $model, array $options = [], integer $key = null )
$title string The title of the form to be rendered
$model string The model for which we are generating a form
$options array An array of options that will configure how the form is generated. label_field - Will set which field is displayed as a text input for the model extra_fields - An array of arrays for which extra fields to render. Each array should contain an attribute of the model in assigned to field. Passing a type and model will allow either a dropdown or search box for finding related objects eg: array( 'field' => 'site_id', 'type' => 'lookup', 'model' => 'Site' ), filter_fields - Will allow you to filter results, expects an array the same as extra_fields
$key integer - if provided will only generate a single row for a null instance of the $model (for ajax additions)

initPagination() 보호된 메소드

저자: bizmate
protected initPagination ( class $model, string $criteria = null ) : CPagination
$model class
$criteria string
리턴 CPagination

프로퍼티 상세

$items_per_page 공개적으로 프로퍼티

public $items_per_page

$layout 공개적으로 프로퍼티

public $layout