christiansalazar avatar christiansalazar committed d4b84e4

doc & comments

Comments (0)

Files changed (39)

 Cruge is a software written by Christian Salazar 
 <christiansalazarh@gmail.com>.
 
-Every php file under this package is protected by this licence.
+Every php file under this package is protected by this license.
 
 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions
 
 ##Licencia
 
-Ver archivo adjunto LICENSE. Free BSD Licence.
+Ver archivo adjunto LICENSE. Free BSD License.
 
 ##Instalaciรณn
 

components/CrugeAccessControlFilter.php

 
     la excepcion reportara error 401 indicando 'Access Denied'. Estandar http.
 
- @author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
-@license protected/modules/cruge/LICENCE
+ @author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
+@license protected/modules/cruge/LICENSE
 */
 class CrugeAccessControlFilter extends CFilter
 {

components/CrugeAuthManager.php

 $auth->assign('admin','adminD');
 
 @author: original de Maurizio Domba <mdomba@gmail.com>
-@author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
-@license protected/modules/cruge/LICENCE
+@author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
+@license protected/modules/cruge/LICENSE
  */
 class CrugeAuthManager extends CAuthManager implements IAuthManager
 {

components/CrugeException.php

 
 centraliza la emision de excepciones, ayudando a traducir los mensajes usando CrugeTranslator
 
-@author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
-@license protected/modules/cruge/LICENCE
+@author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
+@license protected/modules/cruge/LICENSE
  */
 class CrugeException extends CHttpException
 {

components/CrugeFactory.php

 EL USUARIO DE CRUGE NO DEBE ACCEDER A ESTA CLASE
  * @package
  * @version $id$
- * @author Christian Salazar H. <christiansalazarh@gmail.com>
+ * @author Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
  * @license SEE ALSO yourapp/protected/modules/cruge/LICENSE
  */
 class CrugeFactory

components/CrugeMailer.php

 para controlar el despacho de los correos:
 editar a CrugeMailerBase.php o crear un metodo sendemail con los mismos argumentos para que se ajuste a las necesidades.
 
-@author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
-@license protected/modules/cruge/LICENCE
+@author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
+@license protected/modules/cruge/LICENSE
  */
 class CrugeMailer extends CrugeMailerBase implements ICrugeMailer
 {

components/CrugeTranslator.php

 /**
  * CrugeTranslator
  * Provee centralizaciรณn para aplicar la traducciรณn de mensajes de inglรฉs a otros idiomas
- * @author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
- * @license application.modules.cruge.LICENCE
+ * @author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
+ * @license application.modules.cruge.LICENSE
  */
 class CrugeTranslator
 {

components/CrugeUi.php

 <?php echo Yii::app()->user->ui->passwordRecoveryLink; ?>
 <?php echo Yii::app()->user->ui->userManagementAdminLink; ?>
 
-@author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
-@license protected/modules/cruge/LICENCE
+@author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
+@license protected/modules/cruge/LICENSE
  */
 class CrugeUi extends CComponent
 {

components/CrugeUiAccessControlFilter.php

 							,'activationurl','ajaxgeneratenewpassword')
 					),
 		
-	@author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
-	@license protected/modules/cruge/LICENCE	
+	@author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
+	@license protected/modules/cruge/LICENSE	
 */
 class CrugeUiAccessControlFilter extends CrugeAccessControlFilter
 {

components/CrugeUser.php

 @see CrugeAuthDefault
 @see ICrugeAuth
 
-@author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
-@license protected/modules/cruge/LICENCE
+@author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
+@license protected/modules/cruge/LICENSE
  */
 class CrugeUser extends CBaseUserIdentity implements IUserIdentity
 {

components/CrugeUserManager.php

 CrugeUtil
 CrugeTranslator
 
-@author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
-@license protected/modules/cruge/LICENCE
+@author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
+@license protected/modules/cruge/LICENSE
  */
 
 define("CRUGEUSERSTATE_NOTACTIVATED", 0);

components/CrugeUtil.php

 
 funciones variadas que se usan durante toda la aplicacion.
 
-@author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
-@license protected/modules/cruge/LICENCE
+@author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
+@license protected/modules/cruge/LICENSE
  */
 class CrugeUtil extends CComponent
 {

components/CrugeWebUser.php

 $this->getState('nombreVariable','defaultValue');
 
 
-@author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
-@license protected/modules/cruge/LICENCE
+@author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
+@license protected/modules/cruge/LICENSE
  */
 class CrugeWebUser extends CWebUser implements IWebUser
 {

controllers/UiController.php

 igualmente, no hay instancias directas a modelos de datos, esto es para ayudar
 a la insercion de diferentes ORDBM.
 
-@author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
-@license protected/modules/cruge/LICENCE
+@author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
+@license protected/modules/cruge/LICENSE
  */
 class UiController extends Controller
 {

data/cruge-data-model-postgres.sql

 
 	tablas:
 		cruge_system, cruge_user, cruge_session, cruge_field, cruge_fieldvalue
-			@author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
+			@author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
 
 		cruge_authitem, cruge_authitemchild, cruge_authassignment
 			paquete original de Yii, pero con modificaciones en cruge_authassignment
     REFERENCES cruge_authitem (name )
     ON DELETE CASCADE
     ON UPDATE CASCADE)
-;
+;

data/cruge-data-model.sql

 
 	tablas:
 		cruge_system, cruge_user, cruge_session, cruge_field, cruge_fieldvalue
-			@author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
+			@author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
 
 		cruge_authitem, cruge_authitemchild, cruge_authassignment
 			paquete original de Yii, pero con modificaciones en cruge_authassignment
     REFERENCES `cruge_authitem` (`name` )
     ON DELETE CASCADE
     ON UPDATE CASCADE)
-ENGINE = InnoDB;
+ENGINE = InnoDB;

extensions/crugemailer/CrugeMailerBase.php

 ),
 
 
-@author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
+@author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
 http://www.yiiframeworkenespanol.org/licencia
  */
 abstract class CrugeMailerBase extends CApplicationComponent

extensions/crugemailer/ICrugeMailer.php

 si un componente del usuario requiere personalizar el envio de correos puede crear
 un nuevo componente que implemente esta interfaz y extienda de CrugeMailer
 
-@author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
+@author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
 http://www.yiiframeworkenespanol.org/licencia
  */
 interface ICrugeMailer

extensions/crugemailer/README.md

 creado por:
 
 	Yii Framework en Espa๑ol
-	licencia: http://www.yiiframeworkenespanol.org/licence
+	licencia: http://www.yiiframeworkenespanol.org/license
 
 versiones:
 

interfaces/ICrugeAuth.php

 class CrugeAuthDemo extends CBaseUserIdentity implements ICrugeAuth { ... }
 
 
-@author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
-@copyright Copyright &copy; 2008-2012 Yii Software LLC
-@license http://www.yiiframework.com/license/
+@author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
+@license protected/modules/cruge/LICENSE
  */
 interface ICrugeAuth
 {
         @returns instancia de ICrugeStoredUser hallado tras la autenticacion exitosa
     */
     public function getUser();
-}
+}

interfaces/ICrugeField.php

 interfaz para inyectarle al ORDBM seleccionado los metodos a implementar relevante a campos
 de perfil.
 
-@author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
-@copyright Copyright &copy; 2008-2012 Yii Software LLC
-@license http://www.yiiframework.com/license/
+@author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
+@license protected/modules/cruge/LICENSE
  */
 interface ICrugeField
 {

interfaces/ICrugeFieldValue.php

 interfaz para inyectarle al ORDBM seleccionado los metodos a implementar relevante a campos
 personalizados y el valor asignado a un usuario.
 
-@author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
-@copyright Copyright &copy; 2008-2012 Yii Software LLC
-@license http://www.yiiframework.com/license/
+@author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
+@license protected/modules/cruge/LICENSE
  */
 interface ICrugeFieldValue
 {

interfaces/ICrugeSession.php

 
 interfaz para inyectarle al ORDBM seleccionado los metodos a implementar
 
-@author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
-@copyright Copyright &copy; 2008-2012 Yii Software LLC
-@license http://www.yiiframework.com/license/
+@author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
+@license protected/modules/cruge/LICENSE
  */
 interface ICrugeSession
 {
     public function tableName();
 
     public function getPrimaryKey();
-}
+}

interfaces/ICrugeSessionFilter.php

 
 quien consume esta interfaz ?  CrugeUser::authenticate, tras una identificacion exitosa.
 
-@author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
-@copyright Copyright &copy; 2008-2012 Yii Software LLC
-@license http://www.yiiframework.com/license/
+@author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
+@license protected/modules/cruge/LICENSE
  */
 interface ICrugeSessionFilter
 {

interfaces/ICrugeStoredUser.php

 	permite abstraer al sistema de un ORDBM que no sea CActiveRecord, para inyectarle
 	los metodos requeridos.
 	
-	@author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
-	@copyright Copyright &copy; 2008-2012 Yii Software LLC
-	@license http://www.yiiframework.com/license/
+	@author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
+	@license protected/modules/cruge/LICENSE
 */
 interface ICrugeStoredUser
 {

interfaces/ICrugeSystem.php

 <?php
 /** ICrugeSystem
 
-@author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
-@copyright Copyright &copy; 2008-2012 Yii Software LLC
-@license http://www.yiiframework.com/license/
+	@author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
+	@license protected/modules/cruge/LICENSE
  */
 interface ICrugeSystem
 {
 
     public function getPrimaryKey();
 
-}
+}

interfaces/ICrugeUserFilter.php

 si esta interfaz retorna false, tambien debe informar el error al modelo mediante
 la llamada a addError('fieldname','error descripcion');
 
-@author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
-@copyright Copyright &copy; 2008-2012 Yii Software LLC
-@license http://www.yiiframework.com/license/
+	@author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
+	@license protected/modules/cruge/LICENSE
  */
 interface ICrugeUserFilter
 {
     public function canUpdate(ICrugeStoredUser $model);
 }
 
-?>
+?>

models/auth/AlternateAuthDemo.php

 			este string es devuelto en la clase: AlternateAuthDemo.php )
 
 
- 	@author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
-	@copyright Copyright &copy; 2008-2012 Yii Software LLC
-	@license http://www.yiiframework.com/license/
+ 	@author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
+	@license protected/modules/cruge/LICENSE
 */
 class AlternateAuthDemo extends CBaseUserIdentity implements ICrugeAuth
 {

models/auth/CrugeAuthDefault.php

 esta clase es consumida por: CrugeUser::authenticate()
 quien a su vez es invocada por CrugeLogon
 
-@author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
-@license protected/modules/cruge/LICENCE
+@author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
+@license protected/modules/cruge/LICENSE
  */
 class CrugeAuthDefault extends CBaseUserIdentity implements ICrugeAuth
 {

models/data/CrugeField.php

  * @property string $predetvalue    valor predeterminado, usado ademas para llenar listas de opcion
  *
  * @uses CActiveRecord
- * @author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
- * @license protected/modules/cruge/LICENCE
+ * @author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
+ * @license protected/modules/cruge/LICENSE
  */
 class CrugeField extends CActiveRecord
     implements ICrugeField

models/data/CrugeFieldValue.php

  * @property integer $iduser
  * @property integer $idfield
  * @property string $value
- * @author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
- * @license protected/modules/cruge/LICENCE
+ * @author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
+ * @license protected/modules/cruge/LICENSE
  */
 class CrugeFieldValue extends CActiveRecord
 {

models/data/CrugeSession.php

  * @property string $logoutdate
  * @property integer $usagecount
  * @property string $lastusage
- * @author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
- * @license protected/modules/cruge/LICENCE
+ * @author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
+ * @license protected/modules/cruge/LICENSE
  */
 class CrugeSession extends CActiveRecord implements ICrugeSession
 {

models/data/CrugeStoredUser.php

  * @property string $regdate    fecha de registro
  * @property string $actdate    fecha de activacion
  * @property string $logondate    ultimo login exitoso
- * @author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
+ * @author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
  * @license protected/modules/cruge/LICENSE
  */
 class CrugeStoredUser extends CActiveRecord implements ICrugeStoredUser

models/data/CrugeSystem.php

 $terms							los terminos para registrarse
 $defaultroleforregistration		el rol que se aplicara por defecto a los usuarios registrados
 $registrationonlogin			1 o 0, para que aparezca el link de "registration" en el form login
- * @author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
- * @license protected/modules/cruge/LICENCE
+ * @author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
+ * @license protected/modules/cruge/LICENSE
  */
 class CrugeSystem extends CActiveRecord implements ICrugeSystem
 {

models/filters/DefaultSessionFilter.php

 <?php
 /** Filtro por defecto para controlar el otorgamiento de sesiones
 
-@author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
+@author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
 @license protected/modules/cruge/LICENSE
  */
 class DefaultSessionFilter implements ICrugeSessionFilter

models/filters/DefaultUserFilter.php

 $model->getFields(); la cual da un array de ICrugeField
 
 
-@author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
-@license protected/modules/cruge/LICENCE
+@author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
+@license protected/modules/cruge/LICENSE
  */
 class DefaultUserFilter implements ICrugeUserFilter
 {

models/ui/CrugeAuthItemEditor.php

 
 Modelo para editar un CAuthItem.
 
-@author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
-@license protected/modules/cruge/LICENCE
+@author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
+@license protected/modules/cruge/LICENSE
  */
 class CrugeAuthItemEditor extends CFormModel
 {

models/ui/CrugeLogon.php

 basicamente es como el modelo LoginForm que trae Yii por defecto.
 
 
-@author: Christian Salazar H. <christiansalazarh@gmail.com> @bluyell
+@author: Christian Salazar H. <christiansalazarh@gmail.com> @salazarchris74
 @license protected/modules/cruge/LICENSE
  */
 class CrugeLogon extends CFormModel
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.