code
string
repo_name
string
path
string
language
string
license
string
size
int64
<?php /** * CFileHelper class file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CFileHelper provides a set of helper methods for common file system operations. ...
zx-xinhuahos
trunk/src/framework/utils/CFileHelper.php
PHP
art
12,789
<?php /** * CVarDumper class file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CVarDumper is intended to replace the buggy PHP function var_dump and print_r. *...
zx-xinhuahos
trunk/src/framework/utils/CVarDumper.php
PHP
art
4,033
<?php /** * MIME types. * * This file contains most commonly used MIME types * according to file extension names. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ return...
zx-xinhuahos
trunk/src/framework/utils/mimeTypes.php
PHP
art
5,269
<?php /** * CMarkdownParser class file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ require_once(Yii::getPathOfAlias('system.vendors.markdown.markdown').'.php'); if(!c...
zx-xinhuahos
trunk/src/framework/utils/CMarkdownParser.php
PHP
art
7,149
<?php /** * This file contains CTypedMap class. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CTypedMap represents a map whose items are of the certain type. * ...
zx-xinhuahos
trunk/src/framework/collections/CTypedMap.php
PHP
art
1,329
<?php /** * This file contains classes implementing configuration feature. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CConfiguration represents an array-based...
zx-xinhuahos
trunk/src/framework/collections/CConfiguration.php
PHP
art
2,773
<?php /** * CQueueIterator class file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CQueueIterator implements an interator for {@link CQueue}. * * It allows CQ...
zx-xinhuahos
trunk/src/framework/collections/CQueueIterator.php
PHP
art
1,866
<?php /** * This file contains classes implementing the stack feature. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CStack implements a stack. * * The typical ...
zx-xinhuahos
trunk/src/framework/collections/CStack.php
PHP
art
4,110
<?php /** * CListIterator class file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CListIterator implements an interator for {@link CList}. * * It allows CList...
zx-xinhuahos
trunk/src/framework/collections/CListIterator.php
PHP
art
1,860
<?php /** * This file contains classes implementing Map feature. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CMap implements a collection that takes key-value p...
zx-xinhuahos
trunk/src/framework/collections/CMap.php
PHP
art
9,341
<?php /** * This file contains CTypedList class. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CTypedList represents a list whose items are of the certain type. ...
zx-xinhuahos
trunk/src/framework/collections/CTypedList.php
PHP
art
1,364
<?php /** * This file contains classes implementing attribute collection feature. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CAttributeCollection implements a...
zx-xinhuahos
trunk/src/framework/collections/CAttributeCollection.php
PHP
art
6,828
<?php /** * CStackIterator class file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CStackIterator implements an interator for {@link CStack}. * * It allows CS...
zx-xinhuahos
trunk/src/framework/collections/CStackIterator.php
PHP
art
1,866
<?php /** * This file contains classes implementing list feature. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CList implements an integer-indexed collection cla...
zx-xinhuahos
trunk/src/framework/collections/CList.php
PHP
art
9,200
<?php /** * CMapIterator class file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CMapIterator implements an interator for {@link CMap}. * * It allows CMap to ...
zx-xinhuahos
trunk/src/framework/collections/CMapIterator.php
PHP
art
1,924
<?php /** * This file contains classes implementing the queue feature. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CQueue implements a queue. * * The typical ...
zx-xinhuahos
trunk/src/framework/collections/CQueue.php
PHP
art
4,081
<?php /** * Yii command line script file. * * This script is meant to be run on command line to execute * one of the pre-defined console commands. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiif...
zx-xinhuahos
trunk/src/framework/yiic.php
PHP
art
851
<?php /** * CCodeForm class file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CCodeForm represents the form for collecting code generation parameters. * * @au...
zx-xinhuahos
trunk/src/framework/gii/CCodeForm.php
PHP
art
1,229
<?php $this->beginContent('gii.views.layouts.main'); ?> <div class="container"> <div id="content"> <?php echo $content; ?> </div><!-- content --> </div> <?php $this->endContent(); ?>
zx-xinhuahos
trunk/src/framework/gii/views/layouts/column1.php
PHP
art
186
<?php $cs=Yii::app()->clientScript; $cs->coreScriptPosition=CClientScript::POS_HEAD; $cs->scriptMap=array(); $baseUrl=$this->module->assetsUrl; $cs->registerCoreScript('jquery'); $cs->registerScriptFile($baseUrl.'/js/jquery.tooltip-1.2.6.min.js'); $cs->registerScriptFile($baseUrl.'/js/fancybox/jquery.fancybox-1.3.1.pac...
zx-xinhuahos
trunk/src/framework/gii/views/layouts/main.php
PHP
art
2,217
<?php $this->beginContent('gii.views.layouts.main'); ?> <div class="container"> <div class="span-4"> <div id="sidebar"> <?php $this->beginWidget('zii.widgets.CPortlet', array( 'title'=>'Generators', )); ?> <ul> <?php foreach($this->module->controllerMap as $name=>$config): ?> <li><?php echo CHtml::...
zx-xinhuahos
trunk/src/framework/gii/views/layouts/generator.php
PHP
art
680
<h1>Error <?php echo $code; ?></h1> <div class="error"> <?php echo CHtml::encode($message); ?> </div>
zx-xinhuahos
trunk/src/framework/gii/views/default/error.php
PHP
art
102
<h1>Welcome to Yii Code Generator!</h1> <p> You may use the following generators to quickly build up your Yii application: </p> <ul> <?php foreach($this->module->controllerMap as $name=>$config): ?> <li><?php echo CHtml::link(ucwords(CHtml::encode($name).' generator'),array('/gii/'.$name));?></li> <?php endforeach...
zx-xinhuahos
trunk/src/framework/gii/views/default/index.php
PHP
art
332
<div class="form login"> <?php $form=$this->beginWidget('CActiveForm'); ?> <p>Please enter your password</p> <?php echo $form->passwordField($model,'password'); ?> <?php echo $form->error($model,'password'); ?> <?php echo CHtml::submitButton('Enter'); ?> <?php $this->endWidget(); ?> </div><!-- form -->
zx-xinhuahos
trunk/src/framework/gii/views/default/login.php
PHP
art
311
<?php if($file->type==='php') { echo '<div class="content">'; highlight_string($file->content); echo '</div>'; } elseif(in_array($file->type,array('txt','js','css'))) { echo '<div class="content">'; echo nl2br($file->content); echo '</div>'; } else echo '<div class="error">Preview is not available for this file ...
zx-xinhuahos
trunk/src/framework/gii/views/common/code.php
PHP
art
336
<?php if($diff===false): ?> <div class="error">Diff is not supported for this file type.</div> <?php elseif(empty($diff)): ?> <div class="error">No changes.</div> <?php else: ?> <div class="content"> <pre class="diff"><?php echo $diff; ?></pre> </div> <?php endif; ?>
zx-xinhuahos
trunk/src/framework/gii/views/common/diff.php
PHP
art
274
<div class="row template sticky"> <?php echo $this->labelEx($model,'template'); ?> <?php echo $this->dropDownList($model,'template',$templates); ?> <div class="tooltip"> Please select which set of the templates should be used to generated the code. </div> <?php echo $this->error($model,'template'); ?> </div> <d...
zx-xinhuahos
trunk/src/framework/gii/views/common/generator.php
PHP
art
2,412
<h1>Controller Generator</h1> <p>This generator helps you to quickly generate a new controller class, one or several controller actions and their corresponding views.</p> <?php $form=$this->beginWidget('CCodeForm', array('model'=>$model)); ?> <div class="row"> <?php echo $form->labelEx($model,'controller'); ?> ...
zx-xinhuahos
trunk/src/framework/gii/generators/controller/views/index.php
PHP
art
1,665
<?php /** * This is the template for generating an action view file. * The following variables are available in this template: * - $this: the ControllerCode object * - $action: the action ID */ ?> <?php echo "<?php\n"; ?> /* @var $this <?php echo $this->getControllerClass(); ?> */ <?php $label=ucwords(trim(strtol...
zx-xinhuahos
trunk/src/framework/gii/generators/controller/templates/default/view.php
PHP
art
864
<?php /** * This is the template for generating a controller class file. * The following variables are available in this template: * - $this: the ControllerCode object */ ?> <?php echo "<?php\n"; ?> class <?php echo $this->controllerClass; ?> extends <?php echo $this->baseClass."\n"; ?> { <?php foreach($this->getA...
zx-xinhuahos
trunk/src/framework/gii/generators/controller/templates/default/controller.php
PHP
art
1,020
<?php class ControllerCode extends CCodeModel { public $controller; public $baseClass='Controller'; public $actions='index'; public function rules() { return array_merge(parent::rules(), array( array('controller, actions, baseClass', 'filter', 'filter'=>'trim'), array('controller, baseClass', 'required')...
zx-xinhuahos
trunk/src/framework/gii/generators/controller/ControllerCode.php
PHP
art
3,354
<?php class ControllerGenerator extends CCodeGenerator { public $codeModel='gii.generators.controller.ControllerCode'; }
zx-xinhuahos
trunk/src/framework/gii/generators/controller/ControllerGenerator.php
PHP
art
122
<h1>Module Generator</h1> <p>This generator helps you to generate the skeleton code needed by a Yii module.</p> <?php $form=$this->beginWidget('CCodeForm', array('model'=>$model)); ?> <div class="row"> <?php echo $form->labelEx($model,'moduleID'); ?> <?php echo $form->textField($model,'moduleID',array('size'=>6...
zx-xinhuahos
trunk/src/framework/gii/generators/module/views/index.php
PHP
art
692
<?php class ModuleGenerator extends CCodeGenerator { public $codeModel='gii.generators.module.ModuleCode'; }
zx-xinhuahos
trunk/src/framework/gii/generators/module/ModuleGenerator.php
PHP
art
110
<?php class ModuleCode extends CCodeModel { public $moduleID; public function rules() { return array_merge(parent::rules(), array( array('moduleID', 'filter', 'filter'=>'trim'), array('moduleID', 'required'), array('moduleID', 'match', 'pattern'=>'/^\w+$/', 'message'=>'{attribute} should only contain wo...
zx-xinhuahos
trunk/src/framework/gii/generators/module/ModuleCode.php
PHP
art
2,125
<?php echo "<?php\n"; ?> /* @var $this DefaultController */ $this->breadcrumbs=array( $this->module->id, ); ?> <h1><?php echo "<?php"; ?> echo $this->uniqueId . '/' . $this->action->id; ?></h1> <p> This is the view content for action "<?php echo "<?php"; ?> echo $this->action->id; ?>". The action belongs to the cont...
zx-xinhuahos
trunk/src/framework/gii/generators/module/templates/default/views/default/index.php
PHP
art
547
<?php echo "<?php\n"; ?> class DefaultController extends Controller { public function actionIndex() { $this->render('index'); } }
zx-xinhuahos
trunk/src/framework/gii/generators/module/templates/default/controllers/DefaultController.php
PHP
art
135
<?php echo "<?php\n"; ?> class <?php echo $this->moduleClass; ?> extends CWebModule { public function init() { // this method is called when the module is being created // you may place code here to customize the module or the application // import the module-level models and components $this->setImport(arr...
zx-xinhuahos
trunk/src/framework/gii/generators/module/templates/default/module.php
PHP
art
725
<h1>Form Generator</h1> <p>This generator generates a view script file that displays a form to collect input for the specified model class.</p> <?php $form=$this->beginWidget('CCodeForm', array('model'=>$model)); ?> <div class="row"> <?php echo $form->labelEx($model,'model'); ?> <?php echo $form->textField($mod...
zx-xinhuahos
trunk/src/framework/gii/generators/form/views/index.php
PHP
art
2,238
<?php /** * This is the template for generating the action script for the form. * - $this: the CrudCode object */ ?> <?php $viewName=basename($this->viewName); ?> public function action<?php echo ucfirst(trim($viewName,'_')); ?>() { $model=new <?php echo $this->modelClass; ?><?php echo empty($this->scenario) ? '...
zx-xinhuahos
trunk/src/framework/gii/generators/form/templates/default/action.php
PHP
art
991
<?php /** * This is the template for generating a form script file. * The following variables are available in this template: * - $this: the FormCode object */ ?> <?php echo "<?php\n"; ?> /* @var $this <?php echo $this->getModelClass(); ?>Controller */ /* @var $model <?php echo $this->getModelClass(); ?> */ /* @var...
zx-xinhuahos
trunk/src/framework/gii/generators/form/templates/default/form.php
PHP
art
1,214
<?php class FormGenerator extends CCodeGenerator { public $codeModel='gii.generators.form.FormCode'; }
zx-xinhuahos
trunk/src/framework/gii/generators/form/FormGenerator.php
PHP
art
104
<?php class FormCode extends CCodeModel { public $model; public $viewPath='application.views'; public $viewName; public $scenario; private $_modelClass; public function rules() { return array_merge(parent::rules(), array( array('model, viewName, scenario', 'filter', 'filter'=>'trim'), array('model, vi...
zx-xinhuahos
trunk/src/framework/gii/generators/form/FormCode.php
PHP
art
2,595
<?php $class=get_class($model); Yii::app()->clientScript->registerScript('gii.model'," $('#{$class}_connectionId').change(function(){ var tableName=$('#{$class}_tableName'); tableName.autocomplete('option', 'source', []); $.ajax({ url: '".Yii::app()->getUrlManager()->createUrl('gii/model/getTableNames')."', data...
zx-xinhuahos
trunk/src/framework/gii/generators/model/views/index.php
PHP
art
5,311
<?php /** * This is the template for generating the model class of a specified table. * - $this: the ModelCode object * - $tableName: the table name for this class (prefix is already removed if necessary) * - $modelClass: the model class name * - $columns: list of table columns (name=>CDbColumnSchema) * - $labels...
zx-xinhuahos
trunk/src/framework/gii/generators/model/templates/default/model.php
PHP
art
4,131
<?php class ModelCode extends CCodeModel { public $connectionId='db'; public $tablePrefix; public $tableName; public $modelClass; public $modelPath='application.models'; public $baseClass='CActiveRecord'; public $buildRelations=true; /** * @var array list of candidate relation code. The array are indexed by...
zx-xinhuahos
trunk/src/framework/gii/generators/model/ModelCode.php
PHP
art
13,762
<?php class ModelGenerator extends CCodeGenerator { public $codeModel='gii.generators.model.ModelCode'; /** * Provides autocomplete table names * @param string $db the database connection component id * @return string the json array of tablenames that contains the entered term $q */ public function actionG...
zx-xinhuahos
trunk/src/framework/gii/generators/model/ModelGenerator.php
PHP
art
710
<?php $class=get_class($model); Yii::app()->clientScript->registerScript('gii.crud'," $('#{$class}_controller').change(function(){ $(this).data('changed',$(this).val()!=''); }); $('#{$class}_model').bind('keyup change', function(){ var controller=$('#{$class}_controller'); if(!controller.data('changed')) { var id=...
zx-xinhuahos
trunk/src/framework/gii/generators/crud/views/index.php
PHP
art
2,404
<?php /** * The following variables are available in this template: * - $this: the CrudCode object */ ?> <?php echo "<?php\n"; ?> /* @var $this <?php echo $this->getControllerClass(); ?> */ /* @var $model <?php echo $this->getModelClass(); ?> */ <?php $nameColumn=$this->guessNameColumn($this->tableSchema->columns);...
zx-xinhuahos
trunk/src/framework/gii/generators/crud/templates/default/view.php
PHP
art
1,459
<?php /** * The following variables are available in this template: * - $this: the CrudCode object */ ?> <?php echo "<?php\n"; ?> /* @var $this <?php echo $this->getControllerClass(); ?> */ /* @var $model <?php echo $this->getModelClass(); ?> */ <?php $label=$this->pluralize($this->class2name($this->modelClass)); e...
zx-xinhuahos
trunk/src/framework/gii/generators/crud/templates/default/create.php
PHP
art
729
<?php /** * The following variables are available in this template: * - $this: the CrudCode object */ ?> <?php echo "<?php\n"; ?> /* @var $this <?php echo $this->getControllerClass(); ?> */ /* @var $model <?php echo $this->getModelClass(); ?> */ <?php $nameColumn=$this->guessNameColumn($this->tableSchema->columns);...
zx-xinhuahos
trunk/src/framework/gii/generators/crud/templates/default/update.php
PHP
art
1,166
<?php /** * The following variables are available in this template: * - $this: the CrudCode object */ ?> <?php echo "<?php\n"; ?> /* @var $this <?php echo $this->getControllerClass(); ?> */ /* @var $dataProvider CActiveDataProvider */ <?php $label=$this->pluralize($this->class2name($this->modelClass)); echo "\$this...
zx-xinhuahos
trunk/src/framework/gii/generators/crud/templates/default/index.php
PHP
art
718
<?php /** * The following variables are available in this template: * - $this: the CrudCode object */ ?> <?php echo "<?php\n"; ?> /* @var $this <?php echo $this->getControllerClass(); ?> */ /* @var $model <?php echo $this->getModelClass(); ?> */ /* @var $form CActiveForm */ ?> <div class="wide form"> <?php echo "<...
zx-xinhuahos
trunk/src/framework/gii/generators/crud/templates/default/_search.php
PHP
art
1,034
<?php /** * The following variables are available in this template: * - $this: the CrudCode object */ ?> <?php echo "<?php\n"; ?> /* @var $this <?php echo $this->getControllerClass(); ?> */ /* @var $model <?php echo $this->getModelClass(); ?> */ <?php $label=$this->pluralize($this->class2name($this->modelClass)); e...
zx-xinhuahos
trunk/src/framework/gii/generators/crud/templates/default/admin.php
PHP
art
1,943
<?php /** * The following variables are available in this template: * - $this: the CrudCode object */ ?> <?php echo "<?php\n"; ?> /* @var $this <?php echo $this->getControllerClass(); ?> */ /* @var $model <?php echo $this->getModelClass(); ?> */ /* @var $form CActiveForm */ ?> <div class="form"> <?php echo "<?php ...
zx-xinhuahos
trunk/src/framework/gii/generators/crud/templates/default/_form.php
PHP
art
1,222
<?php /** * This is the template for generating a controller class file for CRUD feature. * The following variables are available in this template: * - $this: the CrudCode object */ ?> <?php echo "<?php\n"; ?> class <?php echo $this->controllerClass; ?> extends <?php echo $this->baseControllerClass."\n"; ?> { /**...
zx-xinhuahos
trunk/src/framework/gii/generators/crud/templates/default/controller.php
PHP
art
4,914
<?php /** * The following variables are available in this template: * - $this: the CrudCode object */ ?> <?php echo "<?php\n"; ?> /* @var $this <?php echo $this->getControllerClass(); ?> */ /* @var $data <?php echo $this->getModelClass(); ?> */ ?> <div class="view"> <?php echo "\t<b><?php echo CHtml::encode(\$data...
zx-xinhuahos
trunk/src/framework/gii/generators/crud/templates/default/_view.php
PHP
art
920
<?php class CrudCode extends CCodeModel { public $model; public $controller; public $baseControllerClass='Controller'; private $_modelClass; private $_table; public function rules() { return array_merge(parent::rules(), array( array('model, controller', 'filter', 'filter'=>'trim'), array('model, contr...
zx-xinhuahos
trunk/src/framework/gii/generators/crud/CrudCode.php
PHP
art
6,707
<?php class CrudGenerator extends CCodeGenerator { public $codeModel='gii.generators.crud.CrudCode'; }
zx-xinhuahos
trunk/src/framework/gii/generators/crud/CrudGenerator.php
PHP
art
104
<?php /** * CCodeGenerator class file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CCodeGenerator is the base class for code generator classes. * * CCodeGener...
zx-xinhuahos
trunk/src/framework/gii/CCodeGenerator.php
PHP
art
4,580
<?php Yii::import('gii.components.UserIdentity'); class LoginForm extends CFormModel { public $password; private $_identity; public function rules() { return array( array('password', 'required'), array('password', 'authenticate'), ); } /** * Authenticates the password. * This is the 'authentica...
zx-xinhuahos
trunk/src/framework/gii/models/LoginForm.php
PHP
art
1,020
<?php /** * CCodeModel class file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CCodeModel is the base class for model classes that are used to generate code. *...
zx-xinhuahos
trunk/src/framework/gii/CCodeModel.php
PHP
art
13,569
<?php /** * GiiModule class file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ Yii::import('system.gii.CCodeGenerator'); Yii::import('system.gii.CCodeModel'); Yii::impo...
zx-xinhuahos
trunk/src/framework/gii/GiiModule.php
PHP
art
7,592
<?php class UserIdentity extends CUserIdentity { /** * Authenticates a user. * @return boolean whether authentication succeeds. */ public function authenticate() { $password=Yii::app()->getModule('gii')->password; if($password===null) throw new CException('Please configure the "password" property of th...
zx-xinhuahos
trunk/src/framework/gii/components/UserIdentity.php
PHP
art
540
<?php error_reporting(E_ALL); Yii::import('gii.components.Pear.*'); require_once 'Text/Diff.php'; require_once 'Text/Diff/Renderer.php'; require_once 'Text/Diff/Renderer/inline.php'; class TextDiff extends CComponent { public static function compare($lines1, $lines2) { if(is_string($lines1)) $lines1=explode("...
zx-xinhuahos
trunk/src/framework/gii/components/TextDiff.php
PHP
art
537
<?php /** * General API for generating and formatting diffs - the differences between * two sequences of strings. * * The original PHP version of this code was written by Geoffrey T. Dairiki * <dairiki@dairiki.org>, and is used/adapted with his permission. * * $Horde: framework/Text_Diff/Diff.php,v 1.11.2.11 200...
zx-xinhuahos
trunk/src/framework/gii/components/Pear/Text/Diff.php
PHP
art
12,044
<?php /** * A class for computing three way diffs. * * $Horde: framework/Text_Diff/Diff3.php,v 1.2.10.6 2008/01/04 10:37:26 jan Exp $ * * Copyright 2007-2008 The Horde Project (http://www.horde.org/) * * See the enclosed file COPYING for license information (LGPL). If you did * not receive this file, s...
zx-xinhuahos
trunk/src/framework/gii/components/Pear/Text/Diff3.php
PHP
art
7,457
<?php /** * A class for computing three way diffs. * * $Horde: framework/Text_Diff/Diff/ThreeWay.php,v 1.3.2.3 2008/01/04 10:37:27 jan Exp $ * * Copyright 2007-2008 The Horde Project (http://www.horde.org/) * * See the enclosed file COPYING for license information (LGPL). If you did * not receive this ...
zx-xinhuahos
trunk/src/framework/gii/components/Pear/Text/Diff/ThreeWay.php
PHP
art
7,560
<?php /** * Class used internally by Diff to actually compute the diffs. * * This class uses the xdiff PECL package (http://pecl.php.net/package/xdiff) * to compute the differences between the two input arrays. * * $Horde: framework/Text_Diff/Diff/Engine/xdiff.php,v 1.4.2.3 2008/01/04 10:37:27 jan Exp $ * * Cop...
zx-xinhuahos
trunk/src/framework/gii/components/Pear/Text/Diff/Engine/xdiff.php
PHP
art
2,232
<?php /** * Class used internally by Diff to actually compute the diffs. * * This class uses the Unix `diff` program via shell_exec to compute the * differences between the two input arrays. * * $Horde: framework/Text_Diff/Diff/Engine/shell.php,v 1.6.2.3 2008/01/04 10:37:27 jan Exp $ * * Copyright 2007...
zx-xinhuahos
trunk/src/framework/gii/components/Pear/Text/Diff/Engine/shell.php
PHP
art
5,381
<?php /** * Class used internally by Text_Diff to actually compute the diffs. * * This class is implemented using native PHP code. * * The algorithm used here is mostly lifted from the perl module * Algorithm::Diff (version 1.06) by Ned Konz, which is available at: * http://www.perl.com/CPAN/authors/id/N/NE/NEDK...
zx-xinhuahos
trunk/src/framework/gii/components/Pear/Text/Diff/Engine/native.php
PHP
art
15,937
<?php /** * A class to render Diffs in different formats. * * This class renders the diff in classic diff format. It is intended that * this class be customized via inheritance, to obtain fancier outputs. * * $Horde: framework/Text_Diff/Diff/Renderer.php,v 1.5.10.10 2008/01/04 10:37:27 jan Exp $ * * Copyright 2...
zx-xinhuahos
trunk/src/framework/gii/components/Pear/Text/Diff/Renderer.php
PHP
art
6,785
<?php /** * $Horde: framework/Text_Diff/Diff/Mapped.php,v 1.3.2.3 2008/01/04 10:37:27 jan Exp $ * * Copyright 2007-2008 The Horde Project (http://www.horde.org/) * * See the enclosed file COPYING for license information (LGPL). If you did * not receive this file, see http://opensource.org/licenses/lgpl-lic...
zx-xinhuahos
trunk/src/framework/gii/components/Pear/Text/Diff/Mapped.php
PHP
art
2,188
<?php /** * "Unified" diff renderer. * * This class renders the diff in classic "unified diff" format. * * $Horde: framework/Text_Diff/Diff/Renderer/unified.php,v 1.3.10.6 2008/01/04 10:37:27 jan Exp $ * * Copyright 2004-2008 The Horde Project (http://www.horde.org/) * * See the enclosed file COPYING...
zx-xinhuahos
trunk/src/framework/gii/components/Pear/Text/Diff/Renderer/unified.php
PHP
art
1,552
<?php /** * "Inline" diff renderer. * * $Horde: framework/Text_Diff/Diff/Renderer/inline.php,v 1.4.10.14 2008/01/04 10:37:27 jan Exp $ * * Copyright 2004-2008 The Horde Project (http://www.horde.org/) * * See the enclosed file COPYING for license information (LGPL). If you did * not receive this file, ...
zx-xinhuahos
trunk/src/framework/gii/components/Pear/Text/Diff/Renderer/inline.php
PHP
art
4,902
<?php /** * "Context" diff renderer. * * This class renders the diff in classic "context diff" format. * * $Horde: framework/Text_Diff/Diff/Renderer/context.php,v 1.3.2.3 2008/01/04 10:37:27 jan Exp $ * * Copyright 2004-2008 The Horde Project (http://www.horde.org/) * * See the enclosed file COPYING ...
zx-xinhuahos
trunk/src/framework/gii/components/Pear/Text/Diff/Renderer/context.php
PHP
art
1,841
<?php /** * CCodeFile class file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CCodeFile represents a code file being generated. * * @property string $relative...
zx-xinhuahos
trunk/src/framework/gii/CCodeFile.php
PHP
art
3,166
<?php class DefaultController extends CController { public $layout='/layouts/column1'; public function getPageTitle() { if($this->action->id==='index') return 'Gii: a Web-based code generator for Yii'; else return 'Gii - '.ucfirst($this->action->id).' Generator'; } public function actionIndex() { $...
zx-xinhuahos
trunk/src/framework/gii/controllers/DefaultController.php
PHP
art
1,280
/* * FancyBox - jQuery Plugin * Simple and fancy lightbox alternative * * Examples and documentation at: http://fancybox.net * * Copyright (c) 2008 - 2010 Janis Skarnelis * * Version: 1.3.1 (05/03/2010) * Requires: jQuery v1.3+ * * Dual licensed under the MIT and GPL licenses: * http://www.op...
zx-xinhuahos
trunk/src/framework/gii/assets/js/fancybox/jquery.fancybox-1.3.1.css
CSS
art
8,285
$(document).ready(function() { if($('div.form.login').length) { // in login page $('input#LoginForm_password').focus(); } $('table.preview input[name="checkAll"]').click(function() { $('table.preview .confirm input').prop('checked', this.checked); }); $('table.preview td.confirm input').click(function() { ...
zx-xinhuahos
trunk/src/framework/gii/assets/js/main.js
JavaScript
art
2,525
/* ----------------------------------------------------------------------- Blueprint CSS Framework 0.9 http://blueprintcss.org * Copyright (c) 2007-Present. See LICENSE for more info. * See README for instructions on how to use Blueprint. * For credits and origins, see AUTHORS. * This is a compressed f...
zx-xinhuahos
trunk/src/framework/gii/assets/css/ie.css
CSS
art
1,933
/* ----------------------------------------------------------------------- Blueprint CSS Framework 0.9 http://blueprintcss.org * Copyright (c) 2007-Present. See LICENSE for more info. * See README for instructions on how to use Blueprint. * For credits and origins, see AUTHORS. * This is a compressed f...
zx-xinhuahos
trunk/src/framework/gii/assets/css/print.css
CSS
art
1,284
/* ----------------------------------------------------------------------- Blueprint CSS Framework 0.9 http://blueprintcss.org * Copyright (c) 2007-Present. See LICENSE for more info. * See README for instructions on how to use Blueprint. * For credits and origins, see AUTHORS. * This is a compressed f...
zx-xinhuahos
trunk/src/framework/gii/assets/css/screen.css
CSS
art
10,855
body { margin: 0; padding: 0; color: #555; font: normal 10pt Arial,Helvetica,Verdana,"DejaVu Sans","Bitstream Vera Sans",Geneva,sans-serif; background: #EFEFEF; } h1 { font-size: 1.6em; color: #666; } h2 { font-size: 1.4em; color: #666; } h3 { font-size: 1.2em; color: #666; } #page { margin-top: 5px; m...
zx-xinhuahos
trunk/src/framework/gii/assets/css/main.css
CSS
art
6,303
#!/usr/bin/env php <?php /** * Yii command line script for Unix/Linux. * * This is the bootstrap script for running yiic on Unix/Linux. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008 Yii Software LLC * @license http://www.yiiframework.com/lice...
zx-xinhuahos
trunk/src/framework/.svn/text-base/yiic.svn-base
PHP
art
375
<?php /** * Yii bootstrap file. * * This file is automatically generated using 'build lite' command. * It is the result of merging commonly used Yii class files with * comments and trace statements removed away. * * By using this file instead of yii.php, an Yii application may * improve performance due to the r...
zx-xinhuahos
trunk/src/framework/yiilite.php
PHP
art
291,644
#!/usr/bin/env php <?php /** * Yii command line script for Unix/Linux. * * This is the bootstrap script for running yiic on Unix/Linux. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008 Yii Software LLC * @license http://www.yiiframework.com/lice...
zx-xinhuahos
trunk/src/framework/yiic
PHP
art
375
<?php /** * CDateFormatter class file. * * @author Wei Zhuo <weizhuo[at]gmail[dot]com> * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CDateFormatter provides date/t...
zx-xinhuahos
trunk/src/framework/i18n/CDateFormatter.php
PHP
art
16,383
<?php /** * CMessageSource class file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CMessageSource is the base class for message translation repository classes. ...
zx-xinhuahos
trunk/src/framework/i18n/CMessageSource.php
PHP
art
5,489
<?php /** * CDbMessageSource class file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CDbMessageSource represents a message source that stores translated message...
zx-xinhuahos
trunk/src/framework/i18n/CDbMessageSource.php
PHP
art
4,476
<?php /** * CPhpMessageSource class file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CPhpMessageSource represents a message source that stores translated messa...
zx-xinhuahos
trunk/src/framework/i18n/CPhpMessageSource.php
PHP
art
6,024
<?php /** * CNumberFormatter class file. * * @author Wei Zhuo <weizhuo[at]gmail[dot]com> * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CNumberFormatter provides nu...
zx-xinhuahos
trunk/src/framework/i18n/CNumberFormatter.php
PHP
art
10,762
<?php /** * CGettextPoFile class file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CGettextPoFile represents a PO Gettext message file. * * @author Qiang Xue ...
zx-xinhuahos
trunk/src/framework/i18n/gettext/CGettextPoFile.php
PHP
art
2,411
<?php /** * CGettextMoFile class file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CGettextMoFile represents an MO Gettext message file. * * This class is wri...
zx-xinhuahos
trunk/src/framework/i18n/gettext/CGettextMoFile.php
PHP
art
7,709
<?php /** * CGettextFile class file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CGettextFile is the base class for representing a Gettext message file. * * @...
zx-xinhuahos
trunk/src/framework/i18n/gettext/CGettextFile.php
PHP
art
1,034
<?php /** * CLocale class file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CLocale represents the data relevant to a locale. * * The data includes the number...
zx-xinhuahos
trunk/src/framework/i18n/CLocale.php
PHP
art
14,142
<?php /** * YiiBase class file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CChoiceFormat is a helper that chooses an appropriate message based on the specifie...
zx-xinhuahos
trunk/src/framework/i18n/CChoiceFormat.php
PHP
art
2,396
<?php /** * CGettextMessageSource class file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CGettextMessageSource represents a message source that is based on GNU...
zx-xinhuahos
trunk/src/framework/i18n/CGettextMessageSource.php
PHP
art
3,850
<?php /** * CDbException class file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CDbException represents an exception that is caused by some DB-related operatio...
zx-xinhuahos
trunk/src/framework/db/CDbException.php
PHP
art
959
<?php /** * CActiveRecord class file. * * @author Qiang Xue <qiang.xue@gmail.com> * @link http://www.yiiframework.com/ * @copyright Copyright &copy; 2008-2011 Yii Software LLC * @license http://www.yiiframework.com/license/ */ /** * CActiveFinder implements eager loading and lazy loading of related active reco...
zx-xinhuahos
trunk/src/framework/db/ar/CActiveFinder.php
PHP
art
50,077