コード例 #1
0
 public static function model($className = __CLASS__)
 {
     return parent::model($className);
 }
コード例 #2
0
 public function setAttributes($apost)
 {
     // Asigna el array de tipos de practica con el valor y el valor de la cantidad de practicas por boleta
     $this->tiposdepractica = $apost;
     return parent::setAttributes($apost);
 }
コード例 #3
0
 public function loadModel($id)
 {
     $model = Descuentocoseguro::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, Yii::t('app', 'The requested page does not exist.'));
     }
     return $model;
 }
コード例 #4
0
ファイル: index-test.php プロジェクト: juankie/gestcb9git
<?php

/**
 * This is the bootstrap file for test application.
 * This file should be removed when the application is deployed for production.
 */
// change the following paths if necessary
$yii = dirname(__FILE__) . '/../yii1115/framework/yii.php';
$config = dirname(__FILE__) . '/protected/config/test.php';
// remove the following line when in production mode
defined('YII_DEBUG') or define('YII_DEBUG', true);
require_once $yii;
Yii::createWebApplication($config);
$dc = new Descuentocoseguro();
$dc->idosplan = 1;
$dc->idprestaciontipo = 1;
//EXENTAS
$dc->periodofacturacion = "072015";
var_dump($dc->traeBoletas());