PATH:
home
/
letacommog
/
letaweb
/
admin
/
models
/
mainsite_models
<?php class Purchase extends CActiveRecord { /** * Returns the static model of the specified AR class. * * @return CActiveRecord the static model class */ public static function model($className = __CLASS__) { return parent::model($className); } /** * @return string the associated database table name */ public function tableName() { return '{{purchase}}'; } /** * @return array validation rules for model attributes. */ /* public function rules() { return array( array('name', 'length', 'max'=>100), array('display_name', 'length', 'max'=>100), array('name', 'required'), array('display_name', 'required'), array('id, name, display_name, template, type, custom_domain, published', 'safe'), ); } */ 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( 'page' => array(self::BELONGS_TO, 'Page', 'site_id'), 'page_type' => array(self::BELONGS_TO, 'Page_Type', 'package'), ); } public function search() { $criteria = new CDbCriteria(); $criteria->compare('id', $this->id); $criteria->compare('subscription_id', $this->subscription_id); $criteria->compare('cycle', $this->cycle); $criteria->compare('site_id', $this->site_id); $criteria->compare('amount', $this->amount); $criteria->compare('currency_code', $this->currency_code); $criteria->compare('token', $this->token); $criteria->compare('transaction_id', $this->transaction_id); $criteria->compare('date_added', $this->date_added); return new CActiveDataProvider('Purchase', array( 'criteria' => $criteria, 'sort'=>array( 'defaultOrder'=>'id desc', ), )); } }
[+]
..
[-] Ticket.php
[edit]
[-] Configuration.php
[edit]
[-] PlanCondition.php
[edit]
[-] ModuleCategory.php
[edit]
[-] SamplePageCategory.php
[edit]
[-] Page_Type.php
[edit]
[-] Zone_Templates.php
[edit]
[-] User_Data.php
[edit]
[-] PlanDescription.php
[edit]
[-] UserData.php
[edit]
[-] Purchase.php
[edit]
[-] WebUser.php
[edit]
[-] Term.php
[edit]
[-] Type.php
[edit]
[-] Template.php
[edit]
[-] Site.php
[edit]
[-] Payment.php
[edit]
[+]
forms
[-] Language.php
[edit]
[-] AuthItem.php
[edit]
[-] MailTemplate.php
[edit]
[-] TicketForm.php
[edit]
[-] ModuleData.php
[edit]
[-] UserIdentity.php
[edit]
[-] Popup_Script.php
[edit]
[-] UserRecoverPassword.php
[edit]
[-] HelpCategory.php
[edit]
[-] Color.php
[edit]
[-] PlanAddition.php
[edit]
[-] Plan.php
[edit]
[-] IPNLogMessage.php
[edit]
[-] Subscription.php
[edit]
[-] SamplePage.php
[edit]
[-] ModuleList.php
[edit]
[-] User.php
[edit]
[-] Page_Domain.php
[edit]
[-] Payment_Method.php
[edit]
[-] YiiLog.php
[edit]
[-] User_Session.php
[edit]
[-] SkinPreset.php
[edit]
[-] Page_Installation.php
[edit]
[-] SiteData.php
[edit]
[-] Content.php
[edit]
[-] Library_Script.php
[edit]
[-] WebsiteCategory.php
[edit]