• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP CrugeTranslator类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中CrugeTranslator的典型用法代码示例。如果您正苦于以下问题:PHP CrugeTranslator类的具体用法?PHP CrugeTranslator怎么用?PHP CrugeTranslator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了CrugeTranslator类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: __toString

 public function __toString()
 {
     /*
     return $this->classParent . ": [{$this->code}]: ".CrugeTranslator::t($this->message)."\n".$extra;
     */
     return CrugeTranslator::t($this->message) . "<br/>" . $this->code;
 }
开发者ID:Telemedellin,项目名称:tm,代码行数:7,代码来源:CrugeException.php


示例2: authenticate

 public function authenticate()
 {
     Yii::log(__METHOD__, "info");
     $this->errorCode = self::ERROR_USERNAME_INVALID;
     $model = Yii::app()->user->um->loadUser($this->username);
     Yii::log(__METHOD__ . ' ' . CrugeTranslator::t('logger', 'Returned User') . ":\n" . CJSON::encode($model), "info");
     $this->_userinstance = null;
     if ($model != null) {
         if (CrugeUtil::checkhash($this->password, $model->password)) {
             $this->_userinstance = $model;
             $this->errorCode = self::ERROR_NONE;
         } else {
             if (CrugeUtil::config()->debug == true) {
                 // ayuda a instalar, quiza el usuario olvide quitar la encriptacion de claves
                 // y reciba error de ERROR_PASSWORD_INVALID, es porque esta actuando el Hash
                 // y el usuario recien creado trae una clave no encritpada
                 if (CrugeUtil::config()->useEncryptedPassword == true) {
                     echo Yii::app()->user->ui->setupAlert(CrugeTranslator::t('logon', 'Maybe your password doesn\'t match because you have set up \'useEncryptedPassword = true\' when you were installing Cruge, try \'false\' instead'));
                 }
             }
             $this->errorCode = self::ERROR_PASSWORD_INVALID;
         }
     } else {
         // username o email error
         $this->errorCode = self::ERROR_USERNAME_INVALID;
     }
     Yii::log(__CLASS__ . "\nauthenticate returns:\n" . $this->errorCode . "\n boolean result is:" . ($this->errorCode == self::ERROR_NONE), "info");
     return $this->errorCode == self::ERROR_NONE;
 }
开发者ID:Telemedellin,项目名称:tm,代码行数:29,代码来源:AlternateAuthTm.php


示例3: _getUsernameLabel

 private function _getUsernameLabel()
 {
     $label = "";
     $sep = "";
     foreach (CrugeUtil::config()->availableAuthModes as $k => $v) {
         $label .= $sep . CrugeTranslator::t('logon', ucfirst(CrugeUtil::config()->availableAuthModes[$k]));
         $sep = " " . CrugeTranslator::t('logon', 'or') . " ";
     }
     return $label;
 }
开发者ID:Wladimir89,项目名称:software1grh,代码行数:10,代码来源:CrugeLogon.php


示例4: actionRecuperarclave

 public function actionRecuperarclave()
 {
     if (!Yii::app()->user->isGuest) {
         $this->redirect(array('/usuario/perfil'));
     }
     $model = Yii::app()->user->um->getNewCrugeLogon('pwdrec');
     Yii::app()->user->setFlash('pwdrecflash', null);
     if (isset($_POST[CrugeUtil::config()->postNameMappings['CrugeLogon']])) {
         $model->attributes = $_POST[CrugeUtil::config()->postNameMappings['CrugeLogon']];
         if ($model->validate()) {
             $newPwd = substr(md5(rand() . rand() . time()), 0, 8);
             Yii::app()->user->um->changePassword($model->getModel(), $newPwd);
             //Yii::app()->crugemailer->sendPasswordTo($model->getModel(), $newPwd);
             $this->getModule()->crugemailer->enviar_clave($model->getModel(), $newPwd);
             Yii::app()->user->um->save($model->getModel());
             Yii::app()->user->setFlash('pwdrecflash', CrugeTranslator::t('Una nueva clave ha sido enviada a su correo'));
         }
     }
     $this->render('recuperar', array('model' => $model));
 }
开发者ID:Telemedellin,项目名称:tm,代码行数:20,代码来源:UsuarioController.php


示例5: attributeLabels

 /**
  * @return array customized attribute labels (name=>label)
  */
 public function attributeLabels()
 {
     return array('idfield' => 'Idfield', 'fieldname' => ucwords(CrugeTranslator::t('Nombre Interno')), 'longname' => ucwords(CrugeTranslator::t('Nombre Publico')), 'position' => ucwords(CrugeTranslator::t('Posicion')), 'required' => ucwords(CrugeTranslator::t('Requerido')), 'fieldtype' => ucwords(CrugeTranslator::t('Tipo')), 'fieldsize' => ucwords(CrugeTranslator::t('Ancho Caracteres')), 'maxlength' => ucwords(CrugeTranslator::t('Longitud Maxima')), 'showinreports' => ucwords(CrugeTranslator::t('Ver en Reportes')), 'useregexp' => ucwords(CrugeTranslator::t('Expresion Regular')), 'useregexpmsg' => ucwords(CrugeTranslator::t('Mensaje de error')), 'predetvalue' => ucwords(CrugeTranslator::t('Valor Predeterminado / Opciones de Lista')));
 }
开发者ID:Wladimir89,项目名称:software1grh,代码行数:7,代码来源:CrugeField.php


示例6: array

            <!-- widget header -->
            <div class="widget-header bg-cyan">
                <!-- widget title -->
                <h4 class="widget-title"><i class="aweso-user"></i> <?php 
echo Yii::t('AweCrud.app', 'Manage');
?>
 <?php 
echo ContactoElectronico::label(2);
?>
</h4>
                <!-- widget action, you can also use btn, btn-group, nav-tabs or nav-pills (also support dropdown). enjoy! -->
                <div class="widget-action">
                    <button data-toggle="collapse" data-collapse="#widget-button" class="btn">
                        <i class="aweso-chevron-up color-cyan" data-toggle-icon="aweso-chevron-down  aweso-chevron-up"></i>
                    </button>
                </div>
            </div><!-- /widget header -->
            <!-- widget content -->
            <div class="widget-content bg-white">
                <div style='overflow:auto'> 
<?php 
//$this->widget('bootstrap.widgets.TbGridView',array(
$this->widget('ext.selgridview.BootSelGridView', array('id' => 'contacto-electronico-grid', 'type' => 'striped bordered hover advance ', 'template' => '{summary}{items}{pager}', 'dataProvider' => $model->search(), 'pagerCssClass' => 'pagination text-center', 'selectableRows' => 2, 'columns' => array('id', 'email', array('name' => 'principal', 'filter' => array('SI' => 'SI', 'NO' => 'NO')), array('name' => 'estado', 'filter' => array('ACTIVO' => 'ACTIVO', 'INACTIVO' => 'INACTIVO')), array('class' => 'CButtonColumn', 'template' => '{view} {update} {delete}', 'deleteConfirmation' => CrugeTranslator::t('admin', 'Are you sure you want to delete this user'), 'buttons' => array('view' => array('label' => '<button class="btn btn-success"><i class="aweso-eye-open"></i></button>', 'options' => array('title' => Yii::t('AweCrud.app', 'View')), 'imageUrl' => false), 'update' => array('label' => '<button class="btn btn-info"><i class="aweso-pencil"></i></button>', 'options' => array('title' => Yii::t('AweCrud.app', 'Update')), 'imageUrl' => false), 'delete' => array('label' => '<button class="btn btn-danger"><i class="aweso-trash"></i></button>', 'options' => array('title' => Yii::t('AweCrud.app', 'Delete')), 'imageUrl' => false)), 'htmlOptions' => array('width' => '206px')))));
?>
                </div>
            </div>
        </div>
    </div>
</div>
<!--</fieldset>-->
开发者ID:Wladimir89,项目名称:software1grh,代码行数:30,代码来源:admin.php


示例7: array

			<?php 
echo $form->labelEx($model, 'logondate');
?>
			<?php 
echo $form->textField($model, 'logondate', array('readonly' => 'readonly', 'value' => Yii::app()->user->ui->formatDate($model->logondate)));
?>
		</div>
	
	</div>
</div>

<!-- inicio de campos extra definidos por el administrador del sistema -->
<?php 
if (count($model->getFields()) > 0) {
    echo "<div class='row form-group'>";
    echo "<h6>" . ucfirst(CrugeTranslator::t("perfil")) . "</h6>";
    foreach ($model->getFields() as $f) {
        // aqui $f es una instancia que implementa a: ICrugeField
        echo "<div class='col'>";
        echo Yii::app()->user->um->getLabelField($f);
        echo Yii::app()->user->um->getInputField($model, $f);
        echo $form->error($model, $f->fieldname);
        echo "</div>";
    }
    echo "</div>";
}
?>
<!-- fin de campos extra definidos por el administrador del sistema -->


开发者ID:dev-lav,项目名称:htdocs,代码行数:28,代码来源:usermanagementupdate.php


示例8: foreach

    ?>
		<?php 
    //if(Yii::app()->user->um->getDefaultSystem()->getn('registrationonlogin')===1)
    //	echo Yii::app()->user->ui->registrationLink;
    ?>
	</div>
</div>
	<?php 
    //	si el componente CrugeConnector existe lo usa:
    //
    if (Yii::app()->getComponent('crugeconnector') != null) {
        if (Yii::app()->crugeconnector->hasEnabledClients) {
            ?>
	<div class='crugeconnector'>
		<span><?php 
            echo CrugeTranslator::t('logon', 'You also can login with');
            ?>
:</span>
		<ul>
		<?php 
            $cc = Yii::app()->crugeconnector;
            foreach ($cc->enabledClients as $key => $config) {
                $image = CHtml::image($cc->getClientDefaultImage($key));
                echo "<li>" . CHtml::link($image, $cc->getClientLoginUrl($key)) . "</li>";
            }
            ?>
		</ul>
	</div>
	<?php 
        }
    }
开发者ID:dev-lav,项目名称:htdocs,代码行数:31,代码来源:login.php


示例9: ucfirst

<div class='form-group-vert'>
	<h6><?php 
    echo ucfirst(CrugeTranslator::t("codigo de seguridad"));
    ?>
</h6>
	<div class="row">
		<div>
			<?php 
    $this->widget('CCaptcha');
    ?>
			<?php 
    echo $form->textField($model, 'verifyCode');
    ?>
		</div>
		<div class="hint"><?php 
    echo CrugeTranslator::t("por favor ingrese los caracteres o digitos que vea en la imagen");
    ?>
</div>
		<?php 
    echo $form->error($model, 'verifyCode');
    ?>
	</div>
</div>
<?php 
}
?>
<!-- fin pide captcha-->



<div class="row buttons">
开发者ID:Telemedellin,项目名称:tm,代码行数:31,代码来源:registration.php


示例10: actionAjaxResendRegistrationEmail

 public function actionAjaxResendRegistrationEmail($id)
 {
     $newPassword = CrugeUtil::passwordGenerator();
     $model = Yii::app()->user->um->loadUserById($id);
     if ($model != null) {
         Yii::app()->user->um->changePassword($model, $newPassword);
         Yii::app()->user->um->generateAuthenticationKey($model);
         Yii::app()->user->um->save($model);
         Yii::app()->crugemailer->sendRegistrationEmail($model, $newPassword);
         echo CrugeTranslator::t("correo enviado");
     } else {
         echo CrugeTranslator::t("usuario no hallado");
     }
 }
开发者ID:dev-lav,项目名称:htdocs,代码行数:14,代码来源:UiController.php


示例11: ucwords

$this->pageTitle = Yii::t('app', 'Roles y Asignaciones');
?>



<div class="widget blue">
    <div class="widget-title">
        <h4><i class="icon-key"></i> <?php 
echo ucwords(CrugeTranslator::t("roles"));
?>
</h4>
        <span class="tools">
            <a href="javascript:;" class="icon-chevron-down"></a>
            <!--a href="javascript:;" class="icon-remove"></a-->
        </span>
     </div>
    <div class="widget-body">
        <div class="row-fluid">
            <div class='span12'>
            <?php 
echo CHtml::link('<i class="icon-plus icon-white"></i> ' . CrugeTranslator::t("Crear Nuevo Rol"), Yii::app()->user->ui->getRbacAuthItemCreateUrl(CAuthItem::TYPE_ROLE), array('class' => 'btn btn-success pull-right'));
?>
            </div>
        </div>
        
        <?php 
$this->renderPartial('_listauthitems', array('dataProvider' => $dataProvider), false);
?>
    </div>
</div>
开发者ID:alexi5h,项目名称:eventosibarra,代码行数:30,代码来源:rbaclistroles.php


示例12: getLastError

 public function getLastError()
 {
     return CrugeTranslator::t($this->_lastErrorDescr);
 }
开发者ID:AndressJose,项目名称:bolsa-proyecto-integrado,代码行数:4,代码来源:CrugeUser.php


示例13: attributeLabels

 public function attributeLabels()
 {
     return array('name' => ucfirst(CrugeTranslator::t('nombre')), 'description' => ucfirst(CrugeTranslator::t('descripcion corta')), 'businessRule' => ucfirst(CrugeTranslator::t('regla de negocio')), 'deleteConfirmation' => ucfirst(CrugeTranslator::t('confirmar eliminacion')));
 }
开发者ID:Telemedellin,项目名称:tm,代码行数:4,代码来源:CrugeAuthItemEditor.php


示例14: array

echo $form->textArea($model, 'useregexp', array('rows' => 5, 'cols' => 40));
?>
			<?php 
echo $form->error($model, 'useregexp');
?>
			<p class='hint'><?php 
echo CrugeTranslator::t("dejar en blanco si no se quiere usar");
?>
</p>
		</div>
		<?php 
echo ucfirst(CrugeTranslator::t("La expresion regular (regexp) es una lista de caracteres\n\t\t\t\t que validan la sintaxis de lo que el usuario ingrese en este campo.\n\t\t\t\t por ejemplo:"));
?>
		<?php 
echo "<br/><u>" . CrugeTranslator::t("telefono:") . "</u><br/>^([0-9-.+ \\(\\)]{3,20})\$";
echo "<br/><u>" . CrugeTranslator::t("digitos y letras:") . "</u><br/>^([a-zA-Z0-9]+)\$";
?>
	</div>
	<div class='col'>
		<?php 
echo $form->labelEx($model, 'useregexpmsg');
?>
		<?php 
echo $form->textField($model, 'useregexpmsg', array('size' => 50, 'maxlength' => 512));
?>
		<?php 
echo $form->error($model, 'useregexpmsg');
?>
	</div>
</div>
开发者ID:dev-lav,项目名称:htdocs,代码行数:30,代码来源:fieldsadminupdate.php


示例15: attributeLabels

 /**
  * @return array customized attribute labels (name=>label)
  */
 public function attributeLabels()
 {
     return array('idsession' => 'Idsession', 'iduser' => 'Iduser', 'sessionname' => CrugeTranslator::t("Usuario"), 'created' => CrugeTranslator::t("Creación"), 'expire' => CrugeTranslator::t("Expira"), 'lastusage' => CrugeTranslator::t("Último Uso"), 'status' => CrugeTranslator::t("Estado"), 'usagecount' => CrugeTranslator::t("contador<br/>login"), 'ipaddress' => 'Dirección IP');
 }
开发者ID:Wladimir89,项目名称:software1grh,代码行数:7,代码来源:CrugeSession.php


示例16: array

            <!-- widget header -->
            <div class="widget-header bg-cyan">
                <!-- widget title -->
                <h4 class="widget-title"><i class="aweso-tasks"></i> <?php 
echo Yii::t('AweCrud.app', 'Manage');
?>
 <?php 
echo TareaEtapa::label(2);
?>
</h4>
                <!-- widget action, you can also use btn, btn-group, nav-tabs or nav-pills (also support dropdown). enjoy! -->
                <div class="widget-action">
                    <button data-toggle="collapse" data-collapse="#widget-button" class="btn">
                        <i class="aweso-chevron-up color-cyan" data-toggle-icon="aweso-chevron-down  aweso-chevron-up"></i>
                    </button>
                </div>
            </div><!-- /widget header -->
            <!-- widget content -->
            <div class="widget-content bg-white">
                <div style='overflow:auto'> 
                    <?php 
//$this->widget('bootstrap.widgets.TbGridView',array(
//                    $this->widget('ext.selgridview.BootSelGridView',array(
$this->widget('ext.yiiSortableModel.widgets.SortableCGridView', array('id' => 'tarea-etapa-grid', 'type' => 'striped bordered hover advance ', 'template' => '{summary}{items}{pager}', 'dataProvider' => $model->search(), 'orderField' => 'peso', 'pagerCssClass' => 'pagination text-center', 'orderUrl' => 'reordenar', 'columns' => array(array('name' => 'nombre', 'type' => 'html', 'value' => '"<i class=\'icon-move\'></i> ".$data->nombre'), array('class' => 'CButtonColumn', 'template' => '{update} {delete}', 'deleteConfirmation' => CrugeTranslator::t('admin', 'Are you sure you want to delete this user'), 'buttons' => array('update' => array('label' => '<button class="btn btn-info"><i class="aweso-pencil"></i></button>', 'options' => array('title' => Yii::t('AweCrud.app', 'Update')), 'imageUrl' => false), 'delete' => array('label' => '<button class="btn btn-danger"><i class="aweso-trash"></i></button>', 'options' => array('title' => 'Eliminar', 'onClick' => 'js:location.reload();'), 'imageUrl' => false)), 'htmlOptions' => array('width' => '80px')))));
?>
                </div>
            </div>
        </div>
    </div>
</div>
<!--</fieldset>-->
开发者ID:Wladimir89,项目名称:software1grh,代码行数:31,代码来源:admin.php


示例17: t

 public function t($text)
 {
     return CrugeTranslator::t($text);
 }
开发者ID:dev-lav,项目名称:htdocs,代码行数:4,代码来源:CrugeMailer.php


示例18: logout

 public function logout($destroySession = true)
 {
     $result = false;
     $usersession = $this->getICrugeSession();
     if ($usersession != null) {
         $filtro = $this->getum()->getSessionFilter();
         // para compatibilidad con anteriores versiones del filtro
         if (method_exists($filtro, 'onBeforeLogout')) {
             if ($filtro->onBeforeLogout($usersession) == false) {
                 return false;
             }
         }
         $usersession->logout();
         if ($filtro->onStore($usersession)) {
             $filtro->onLogout($usersession);
             $result = true;
         } else {
             Yii::log(CHtml::errorSummary($usersession, "error al guardar una sesion"), "error");
             $this->_lastError = CrugeTranslator::t("Error al almacenar sesion");
         }
     }
     parent::logout($destroySession);
     return $result;
 }
开发者ID:Telemedellin,项目名称:tm,代码行数:24,代码来源:CrugeWebUser.php


示例19: getICrugeFieldCreate

 public function getICrugeFieldCreate($fieldtype)
 {
     $model = new CrugeField();
     $model->fieldtype = $fieldtype;
     $model->fieldname = CrugeTranslator::t("nuevocampo");
     $model->longname = CrugeTranslator::t("Nuevo Campo");
     $model->position = 0;
     $model->fieldsize = 20;
     $model->maxlength = 45;
     $model->required = false;
     $model->showinreports = false;
     return $model;
 }
开发者ID:nicoblakie,项目名称:arkasGroup,代码行数:13,代码来源:CrugeFactory.php


示例20: logout

 public function logout($destroySession = true)
 {
     $result = false;
     $usersession = $this->getICrugeSession();
     if ($usersession != null) {
         $filtro = $this->getum()->getSessionFilter();
         $usersession->logout();
         if ($filtro->onStore($usersession)) {
             $filtro->onLogout($usersession);
             $result = true;
         } else {
             Yii::log(CHtml::errorSummary($usersession, "error al guardar una sesion"), "error");
             $this->_lastError = CrugeTranslator::t("Error al almacenar sesion");
         }
     }
     parent::logout($destroySession);
     return $result;
 }
开发者ID:AndressJose,项目名称:bolsa-proyecto-integrado,代码行数:18,代码来源:CrugeWebUser.php



注:本文中的CrugeTranslator类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Crypt类代码示例发布时间:2022-05-23
下一篇:
PHP Crud类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap