1. Christian Salazar
  2. cruge

Commits

christiansalazar  committed d4b84e4

doc & comments

  • Participants
  • Parent commits 8f4ab23
  • Branches master

Comments (0)

Files changed (39)

File LICENSE

View file
 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

File README.md

View file
 
 ##Licencia
 
-Ver archivo adjunto LICENSE. Free BSD Licence.
+Ver archivo adjunto LICENSE. Free BSD License.
 
 ##Instalaciรณn
 

File components/CrugeAccessControlFilter.php

View file
 
     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
 {

File components/CrugeAuthManager.php

View file
 $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
 {

File components/CrugeException.php

View file
 
 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
 {

File components/CrugeFactory.php

View file
 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

File components/CrugeMailer.php

View file
 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
 {

File components/CrugeTranslator.php

View file
 /**
  * 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
 {

File components/CrugeUi.php

View file
 <?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
 {

File components/CrugeUiAccessControlFilter.php

View file
 							,'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
 {

File components/CrugeUser.php

View file
 @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
 {

File components/CrugeUserManager.php

View file
 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);

File components/CrugeUtil.php

View file
 
 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
 {

File components/CrugeWebUser.php

View file
 $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
 {

File controllers/UiController.php

View file
 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
 {

File data/cruge-data-model-postgres.sql

View file
 
 	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)
-;
+;

File data/cruge-data-model.sql

View file
 
 	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;

File extensions/crugemailer/CrugeMailerBase.php

View file
 ),
 
 
-@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

File extensions/crugemailer/ICrugeMailer.php

View file
 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

File extensions/crugemailer/README.md

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

File interfaces/ICrugeAuth.php

View file
 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();
-}
+}

File interfaces/ICrugeField.php

View file
 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
 {

File interfaces/ICrugeFieldValue.php

View file
 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
 {

File interfaces/ICrugeSession.php

View file
 
 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();
-}
+}

File interfaces/ICrugeSessionFilter.php

View file
 
 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
 {

File interfaces/ICrugeStoredUser.php

View file
 	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
 {

File interfaces/ICrugeSystem.php

View file
 <?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();
 
-}
+}

File interfaces/ICrugeUserFilter.php

View file
 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);
 }
 
-?>
+?>

File models/auth/AlternateAuthDemo.php

View file
 			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
 {

File models/auth/CrugeAuthDefault.php

View file
 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
 {

File models/data/CrugeField.php

View file
  * @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

File models/data/CrugeFieldValue.php

View file
  * @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
 {

File models/data/CrugeSession.php

View file
  * @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
 {

File models/data/CrugeStoredUser.php

View file
  * @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

File models/data/CrugeSystem.php

View file
 $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
 {

File models/filters/DefaultSessionFilter.php

View file
 <?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

File models/filters/DefaultUserFilter.php

View file
 $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
 {

File models/ui/CrugeAuthItemEditor.php

View file
 
 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
 {

File models/ui/CrugeLogon.php

View file
 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