PATH:
home
/
letacommog
/
letaweb
/
admin
/
models
/
subsite_models
<?php class BContributor extends BActiveRecord { public $maxId; public static function model($className = __CLASS__) { return parent::model($className); } public function tableName() { return '{{contributors}}'; } public function relations() { // NOTE: you may need to adjust the relation name and the related // class name for the relations automatically generated below. return array( 'user' => array(self::BELONGS_TO, 'User', 'user_id'), 'site' => array(self::BELONGS_TO, 'Site', 'site_id'), ); } public function getFormData() { $criteria = new CDbCriteria(); $criteria->compare('user_id', $this->user_id); return $this->find($criteria); } public function getPagedList($pageSize = 10, $start = 0,$order='') { $criteria = new CDbCriteria(); //$alias = $this->getTableAlias(false, false); $criteria->with = array('user'); //$criteria->compare($alias.'.email', $this->filter_email); if(strrpos($order, "user.") === false) $criteria->order = $alias.'.'.$order; else $criteria->order = $order; //echo $start; //$criteria->offset = $start; // $criteria->together = true; return new ActiveDataProvider('BContributor', array( 'criteria' => $criteria, 'pagination' => array( 'pageSize' => $pageSize, 'start'=>$start, 'class' => 'Pagination', ), )); } }
[+]
..
[-] BTag.php
[edit]
[-] BActiveRecord.php
[edit]
[-] BModule.php
[edit]
[-] BPages.php
[edit]
[-] BComments.php
[edit]
[-] BNews_News_Category.php
[edit]
[-] BNewsModule.php
[edit]
[-] BAuthAssignment.php
[edit]
[-] BNewsCategory.php
[edit]
[-] BConfigurations.php
[edit]
[-] BPages_Elements.php
[edit]
[-] BNews_Comments.php
[edit]
[-] BNews_Categories.php
[edit]
[-] BUsers.php
[edit]
[-] BUserIdentity.php
[edit]
[-] BNews.php
[edit]
[-] BWebUser.php
[edit]
[+]
forms
[-] BColors.php
[edit]
[-] BSkins.php
[edit]
[-] BNews_Tag.php
[edit]
[-] BContributor_Invites.php
[edit]
[-] BContributor.php
[edit]