mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-09 09:56:56 +01:00
294 lines
7.6 KiB
PHP
294 lines
7.6 KiB
PHP
<?php
|
|
/**
|
|
* sysPass
|
|
*
|
|
* @author nuxsmin
|
|
* @link http://syspass.org
|
|
* @copyright 2012-2015 Rubén Domínguez nuxsmin@$syspass.org
|
|
*
|
|
* This file is part of sysPass.
|
|
*
|
|
* sysPass is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* sysPass is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with sysPass. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
*/
|
|
|
|
namespace SP\Controller;
|
|
|
|
defined('APP_ROOT') || die(_('No es posible acceder directamente a este archivo'));
|
|
|
|
use SP\Core\Init;
|
|
use SP\Html\DataGrid\DataGridIcon;
|
|
|
|
/**
|
|
* Class Icons para establecer los iconos de las vistas
|
|
*
|
|
* @package SP\Controller
|
|
*/
|
|
class Icons
|
|
{
|
|
/** @var DataGridIcon */
|
|
private $_iconAdd;
|
|
/** @var DataGridIcon */
|
|
private $_iconView;
|
|
/** @var DataGridIcon */
|
|
private $_iconEdit;
|
|
/** @var DataGridIcon */
|
|
private $_iconDelete;
|
|
/** @var DataGridIcon */
|
|
private $_iconNavPrev;
|
|
/** @var DataGridIcon */
|
|
private $_iconNavNext;
|
|
/** @var DataGridIcon */
|
|
private $_iconNavFirst;
|
|
/** @var DataGridIcon */
|
|
private $_iconNavLast;
|
|
/** @var DataGridIcon */
|
|
private $_iconEditPass;
|
|
/** @var DataGridIcon */
|
|
private $_iconAppAdmin;
|
|
/** @var DataGridIcon */
|
|
private $_iconAccAdmin;
|
|
/** @var DataGridIcon */
|
|
private $_iconLdapUser;
|
|
/** @var DataGridIcon */
|
|
private $_iconDisabled;
|
|
/** @var DataGridIcon */
|
|
private $_iconViewPass;
|
|
/** @var DataGridIcon */
|
|
private $_iconCopy;
|
|
/** @var DataGridIcon */
|
|
private $_iconClipboard;
|
|
/** @var DataGridIcon */
|
|
private $_iconEmail;
|
|
/** @var DataGridIcon */
|
|
private $_iconOptional;
|
|
/** @var DataGridIcon */
|
|
private $_iconUp;
|
|
/** @var DataGridIcon */
|
|
private $_iconDown;
|
|
/** @var DataGridIcon */
|
|
private $_iconRefresh;
|
|
|
|
/**
|
|
* Icons constructor.
|
|
*/
|
|
public function __construct()
|
|
{
|
|
$this->setIcons();
|
|
}
|
|
|
|
/**
|
|
* Establecer los iconos utilizados en el DataGrid
|
|
*/
|
|
private function setIcons()
|
|
{
|
|
$this->_iconAdd = new DataGridIcon('add', Init::$WEBURI .'/imgs/add.png', 'fg-blue80');
|
|
$this->_iconView = new DataGridIcon('visibility', Init::$WEBURI . '/imgs/view.png', 'fg-blue80');
|
|
$this->_iconViewPass = new DataGridIcon('lock_open', Init::$WEBURI . '/imgs/user-pass.png', 'fg-blue80');
|
|
$this->_iconEdit = new DataGridIcon('mode_edit', Init::$WEBURI . '/imgs/edit.png', 'fg-orange80');
|
|
$this->_iconDelete = new DataGridIcon('delete', Init::$WEBURI . '/imgs/delete.png', 'fg-red80');
|
|
$this->_iconEditPass = new DataGridIcon('lock_outline', Init::$WEBURI . '/imgs/key.png', 'fg-orange80');
|
|
$this->_iconAppAdmin = new DataGridIcon('star', Init::$WEBURI . '/imgs/check_blue.png', null, _('Admin Aplicación'));
|
|
$this->_iconAccAdmin = new DataGridIcon('star_half', Init::$WEBURI . '/imgs/check_orange.png', null, _('Admin Cuentas'));
|
|
$this->_iconLdapUser = new DataGridIcon('business', Init::$WEBURI . '/imgs/ldap.png', null, _('Usuario de LDAP'));
|
|
$this->_iconDisabled = new DataGridIcon('error', Init::$WEBURI . '/imgs/disabled.png', null, _('Deshabilitado'));
|
|
$this->_iconRefresh = new DataGridIcon('refresh', Init::$WEBURI . '/imgs/view.png', 'fg-green80');
|
|
$this->_iconCopy = new DataGridIcon('content_copy', Init::$WEBURI . '/imgs/btn_copy.png', 'fg-blue80');
|
|
$this->_iconClipboard = new DataGridIcon('content_paste', Init::$WEBURI . '/imgs/clipboard.png', 'fg-blue80');
|
|
$this->_iconEmail = new DataGridIcon('email', Init::$WEBURI . '/imgs/request.png', 'fg-blue80');
|
|
$this->_iconOptional = new DataGridIcon('settings', Init::$WEBURI . '/imgs/action.png');
|
|
|
|
// Iconos de Navegación
|
|
$this->_iconNavPrev = new DataGridIcon('chevron_left', Init::$WEBURI . '/imgs/arrow_left.png');
|
|
$this->_iconNavPrev->setTitle(_('Página anterior'));
|
|
$this->_iconNavNext = new DataGridIcon('chevron_right', Init::$WEBURI . '/imgs/arrow_right.png');
|
|
$this->_iconNavNext->setTitle(_('Página siguiente'));
|
|
$this->_iconNavFirst = new DataGridIcon('arrow_back', Init::$WEBURI . '/imgs/arrow_first.png');
|
|
$this->_iconNavFirst->setTitle(_('Primera página'));
|
|
$this->_iconNavLast = new DataGridIcon('arrow_forward', Init::$WEBURI . '/imgs/arrow_last.png');
|
|
$this->_iconNavLast->setTitle(_('Última página'));
|
|
|
|
// Iconos de Ordenación
|
|
$this->_iconUp = new DataGridIcon('arrow_drop_up', Init::$WEBURI . '/imgs/arrow_up.png');
|
|
$this->_iconDown = new DataGridIcon('arrow_drop_down', Init::$WEBURI . '/imgs/arrow_down.png');
|
|
}
|
|
|
|
/**
|
|
* @return DataGridIcon
|
|
*/
|
|
public function getIconUp()
|
|
{
|
|
return $this->_iconUp;
|
|
}
|
|
|
|
/**
|
|
* @return DataGridIcon
|
|
*/
|
|
public function getIconDown()
|
|
{
|
|
return $this->_iconDown;
|
|
}
|
|
|
|
/**
|
|
* @return DataGridIcon
|
|
*/
|
|
public function getIconViewPass()
|
|
{
|
|
return $this->_iconViewPass;
|
|
}
|
|
|
|
/**
|
|
* @return DataGridIcon
|
|
*/
|
|
public function getIconCopy()
|
|
{
|
|
return $this->_iconCopy;
|
|
}
|
|
|
|
/**
|
|
* @return DataGridIcon
|
|
*/
|
|
public function getIconClipboard()
|
|
{
|
|
return $this->_iconClipboard;
|
|
}
|
|
|
|
/**
|
|
* @return DataGridIcon
|
|
*/
|
|
public function getIconEmail()
|
|
{
|
|
return $this->_iconEmail;
|
|
}
|
|
|
|
/**
|
|
* @return DataGridIcon
|
|
*/
|
|
public function getIconRefresh()
|
|
{
|
|
return $this->_iconRefresh;
|
|
}
|
|
|
|
/**
|
|
* @return DataGridIcon
|
|
*/
|
|
public function getIconEditPass()
|
|
{
|
|
return $this->_iconEditPass;
|
|
}
|
|
|
|
/**
|
|
* @return DataGridIcon
|
|
*/
|
|
public function getIconAppAdmin()
|
|
{
|
|
return $this->_iconAppAdmin;
|
|
}
|
|
|
|
/**
|
|
* @return DataGridIcon
|
|
*/
|
|
public function getIconAccAdmin()
|
|
{
|
|
return $this->_iconAccAdmin;
|
|
}
|
|
|
|
/**
|
|
* @return DataGridIcon
|
|
*/
|
|
public function getIconLdapUser()
|
|
{
|
|
return $this->_iconLdapUser;
|
|
}
|
|
|
|
/**
|
|
* @return DataGridIcon
|
|
*/
|
|
public function getIconDisabled()
|
|
{
|
|
return $this->_iconDisabled;
|
|
}
|
|
|
|
/**
|
|
* @return DataGridIcon
|
|
*/
|
|
public function getIconNavPrev()
|
|
{
|
|
return $this->_iconNavPrev;
|
|
}
|
|
|
|
/**
|
|
* @return DataGridIcon
|
|
*/
|
|
public function getIconNavNext()
|
|
{
|
|
return $this->_iconNavNext;
|
|
}
|
|
|
|
/**
|
|
* @return DataGridIcon
|
|
*/
|
|
public function getIconNavFirst()
|
|
{
|
|
return $this->_iconNavFirst;
|
|
}
|
|
|
|
/**
|
|
* @return DataGridIcon
|
|
*/
|
|
public function getIconNavLast()
|
|
{
|
|
return $this->_iconNavLast;
|
|
}
|
|
|
|
/**
|
|
* @return DataGridIcon
|
|
*/
|
|
public function getIconAdd()
|
|
{
|
|
return $this->_iconAdd;
|
|
}
|
|
|
|
/**
|
|
* @return DataGridIcon
|
|
*/
|
|
public function getIconView()
|
|
{
|
|
return $this->_iconView;
|
|
}
|
|
|
|
/**
|
|
* @return DataGridIcon
|
|
*/
|
|
public function getIconEdit()
|
|
{
|
|
return $this->_iconEdit;
|
|
}
|
|
|
|
/**
|
|
* @return DataGridIcon
|
|
*/
|
|
public function getIconDelete()
|
|
{
|
|
return $this->_iconDelete;
|
|
}
|
|
|
|
/**
|
|
* @return DataGridIcon
|
|
*/
|
|
public function getIconOptional()
|
|
{
|
|
return $this->_iconOptional;
|
|
}
|
|
} |