diff --git a/docs/api/html/source/app/code/community/FireGento/AdminMonitoring/Block/Adminhtml/History.php.xhtml b/docs/api/html/source/app/code/community/FireGento/AdminMonitoring/Block/Adminhtml/History.php.xhtml index 4f1c94d..6cce9d6 100644 --- a/docs/api/html/source/app/code/community/FireGento/AdminMonitoring/Block/Adminhtml/History.php.xhtml +++ b/docs/api/html/source/app/code/community/FireGento/AdminMonitoring/Block/Adminhtml/History.php.xhtml @@ -1,3 +1,3 @@ phpDox - Source of History.php

Source of file History.php

- Size: 1,457 Bytes - Last Modified: 2014-10-26T15:31:53+01:00

/Users/rouven/Sites/firegento/.modman/firegento-adminmonitoring/src/app/code/community/FireGento/AdminMonitoring/Block/Adminhtml/History.php

12345678910111213141516171819202122232425262728293031323334353637383940414243
<?php
/**
 * This file is part of a FireGento e.V. module.
 *
 * This FireGento e.V. module is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License version 3 as
 * published by the Free Software Foundation.
 *
 * This script 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.
 *
 * PHP version 5
 *
 * @category  FireGento
 * @package   FireGento_AdminMonitoring
 * @author    FireGento Team <team@firegento.com>
 * @copyright 2014 FireGento Team (http://www.firegento.com)
 * @license   http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
 */
/**
 * Displays the logging history grid container
 *
 * @category FireGento
 * @package  FireGento_AdminMonitoring
 * @author   FireGento Team <team@firegento.com>
 */
class FireGento_AdminMonitoring_Block_Adminhtml_History
    extends Mage_Adminhtml_Block_Widget_Grid_Container
{
    /**
     * Constructor of the grid container
     */
    public function __construct()
    {
        $this->_blockGroup = 'firegento_adminmonitoring';
        $this->_controller = 'adminhtml_history';
        $this->_headerText = Mage::helper('firegento_adminmonitoring')->__('History');
        parent::__construct();
        $this->removeButton('add');
    }
}

+ Size: 1,457 Bytes - Last Modified: 2014-10-26T15:34:44+01:00

/Users/rouven/Sites/firegento/.modman/firegento-adminmonitoring/src/app/code/community/FireGento/AdminMonitoring/Block/Adminhtml/History.php

12345678910111213141516171819202122232425262728293031323334353637383940414243
<?php
/**
 * This file is part of a FireGento e.V. module.
 *
 * This FireGento e.V. module is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License version 3 as
 * published by the Free Software Foundation.
 *
 * This script 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.
 *
 * PHP version 5
 *
 * @category  FireGento
 * @package   FireGento_AdminMonitoring
 * @author    FireGento Team <team@firegento.com>
 * @copyright 2014 FireGento Team (http://www.firegento.com)
 * @license   http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
 */
/**
 * Displays the logging history grid container
 *
 * @category FireGento
 * @package  FireGento_AdminMonitoring
 * @author   FireGento Team <team@firegento.com>
 */
class FireGento_AdminMonitoring_Block_Adminhtml_History
    extends Mage_Adminhtml_Block_Widget_Grid_Container
{
    /**
     * Constructor of the grid container
     */
    public function __construct()
    {
        $this->_blockGroup = 'firegento_adminmonitoring';
        $this->_controller = 'adminhtml_history';
        $this->_headerText = Mage::helper('firegento_adminmonitoring')->__('History');
        parent::__construct();
        $this->removeButton('add');
    }
}

diff --git a/docs/api/html/source/app/code/community/FireGento/AdminMonitoring/Block/Adminhtml/History/Grid.php.xhtml b/docs/api/html/source/app/code/community/FireGento/AdminMonitoring/Block/Adminhtml/History/Grid.php.xhtml index 9e3e33d..301c249 100644 --- a/docs/api/html/source/app/code/community/FireGento/AdminMonitoring/Block/Adminhtml/History/Grid.php.xhtml +++ b/docs/api/html/source/app/code/community/FireGento/AdminMonitoring/Block/Adminhtml/History/Grid.php.xhtml @@ -1,3 +1,3 @@ phpDox - Source of Grid.php

Source of file Grid.php

- Size: 6,238 Bytes - Last Modified: 2014-10-26T15:31:53+01:00

/Users/rouven/Sites/firegento/.modman/firegento-adminmonitoring/src/app/code/community/FireGento/AdminMonitoring/Block/Adminhtml/History/Grid.php

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
<?php
/**
 * This file is part of a FireGento e.V. module.
 *
 * This FireGento e.V. module is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License version 3 as
 * published by the Free Software Foundation.
 *
 * This script 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.
 *
 * PHP version 5
 *
 * @category  FireGento
 * @package   FireGento_AdminMonitoring
 * @author    FireGento Team <team@firegento.com>
 * @copyright 2014 FireGento Team (http://www.firegento.com)
 * @license   http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
 */

/**
 * Displays the logging history grid
 *
 * @category FireGento
 * @package  FireGento_AdminMonitoring
 * @author   FireGento Team <team@firegento.com>
 */
class FireGento_AdminMonitoring_Block_Adminhtml_History_Grid
    extends Mage_Adminhtml_Block_Widget_Grid
{
    /**
     * Grid constructor
     */
    public function __construct()
    {
        parent::__construct();
        $this->setId('firegento_adminmonitoring_grid');
        $this->setDefaultSort('created_at');
        $this->setDefaultDir('desc');
        $this->setSaveParametersInSession(true);
        $this->setUseAjax(true);
    }

    /**
     * Retrieve helper class
     *
     * @return FireGento_AdminMonitoring_Helper_Data Helper Instance
     */
    public function getMonitoringHelper()
    {
        return Mage::helper('firegento_adminmonitoring');
    }

    /**
     * Prepare the grid collection
     *
     * @return FireGento_AdminMonitoring_Block_Adminhtml_History_Grid Self.
     */
    protected function _prepareCollection()
    {
        $collection = Mage::getResourceModel('firegento_adminmonitoring/history_collection');
        $collection->setOrder('created_at', 'DESC');
        $this->setCollection($collection);

        return parent::_prepareCollection();
    }

    /**
     * Prepare the grid columns
     *
     * @return FireGento_AdminMonitoring_Block_Adminhtml_History_Grid Self.
     */
    protected function _prepareColumns()
    {
        $this->addColumn('created_at', array(
            'header' => $this->getMonitoringHelper()->__('Date/Time'),
            'index'  => 'created_at',
            'type'   => 'datetime',
            'width'  => 130
        ));

        $this->addColumn('object_type', array(
            'header' => $this->getMonitoringHelper()->__('Object Type'),
            'index'  => 'object_type',
        ));

        $this->addColumn('object_id', array(
            'header' => $this->getMonitoringHelper()->__('Object ID'),
            'index'  => 'object_id',
            'type'   => 'number',
        ));

        /* @var $adminUsers FireGento_AdminMonitoring_Model_System_Config_Source_History_Action */
        $adminUsers = Mage::getModel('firegento_adminmonitoring/system_config_source_history_action');
        $actionOptions = $adminUsers->toOptionHash();
        $this->addColumn('action', array(
            'header'  => $this->getMonitoringHelper()->__('Action'),
            'index'   => 'action',
            'type'    => 'options',
            'options' => $actionOptions
        ));

        /* @var $adminUsers FireGento_AdminMonitoring_Model_System_Config_Source_History_Status */
        $adminUsers = Mage::getModel('firegento_adminmonitoring/system_config_source_history_status');
        $statusOptions = $adminUsers->toOptionHash();
        $this->addColumn('status', array(
            'header'  => $this->getMonitoringHelper()->__('Status'),
            'index'   => 'status',
            'type'    => 'options',
            'options' => $statusOptions
        ));

        /* @var $adminUsers FireGento_AdminMonitoring_Model_System_Config_Source_Admin_User */
        $adminUsers = Mage::getModel('firegento_adminmonitoring/system_config_source_admin_user');
        $userOptions = $adminUsers->toOptionHash();
        $this->addColumn('user_id', array(
            'header'  => $this->getMonitoringHelper()->__('User'),
            'index'   => 'user_id',
            'type'    => 'options',
            'options' => $userOptions,
        ));

        $this->addColumn('ip', array(
            'header' => $this->getMonitoringHelper()->__('Remote Address'),
            'index'  => 'ip',
            'width'  => 110
        ));

        $this->addColumn('history_message', array(
            'header' => $this->getMonitoringHelper()->__('Message'),
            'index'  => 'history_message',
        ));

        $this->addColumn('object_link', array(
            'header'   => Mage::helper('customer')->__('Link'),
            'sortable' => false,
            'filter'   => false,
            'renderer' => 'firegento_adminmonitoring/adminhtml_history_grid_link',
        ));

        $this->addColumn('row_action',
            array(
                'header'   => Mage::helper('catalog')->__('Action'),
                'width'    => 50,
                'type'     => 'action',
                'getter'   => 'getId',
                'actions'  => array(
                    array(
                        'caption' => Mage::helper('catalog')->__('View'),
                        'url'     => array(
                            'base' => '*/*/view',
                        ),
                        'field'   => 'id'
                    )
                ),
                'filter'   => false,
                'sortable' => false,
                'index'    => 'stores',
            ));

        return parent::_prepareColumns();
    }

    /**
     * Retrieve the row url for the given history entry
     *
     * @param  FireGento_AdminMonitoring_Model_History $row History Model
     * @return bool|string
     */
    public function getRowUrl($row)
    {
        return $this->getUrl('*/*/view', array('id' => $row->getId()));
    }

    /**
     * Retrieve the grid url for the ajax calls in the grid
     *
     * @return string
     */
    public function getGridUrl()
    {
        return $this->getUrl('*/*/grid', array('_current' => true));
    }
}

+ Size: 6,238 Bytes - Last Modified: 2014-10-26T15:34:44+01:00

/Users/rouven/Sites/firegento/.modman/firegento-adminmonitoring/src/app/code/community/FireGento/AdminMonitoring/Block/Adminhtml/History/Grid.php

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
<?php
/**
 * This file is part of a FireGento e.V. module.
 *
 * This FireGento e.V. module is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License version 3 as
 * published by the Free Software Foundation.
 *
 * This script 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.
 *
 * PHP version 5
 *
 * @category  FireGento
 * @package   FireGento_AdminMonitoring
 * @author    FireGento Team <team@firegento.com>
 * @copyright 2014 FireGento Team (http://www.firegento.com)
 * @license   http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
 */

/**
 * Displays the logging history grid
 *
 * @category FireGento
 * @package  FireGento_AdminMonitoring
 * @author   FireGento Team <team@firegento.com>
 */
class FireGento_AdminMonitoring_Block_Adminhtml_History_Grid
    extends Mage_Adminhtml_Block_Widget_Grid
{
    /**
     * Grid constructor
     */
    public function __construct()
    {
        parent::__construct();
        $this->setId('firegento_adminmonitoring_grid');
        $this->setDefaultSort('created_at');
        $this->setDefaultDir('desc');
        $this->setSaveParametersInSession(true);
        $this->setUseAjax(true);
    }

    /**
     * Retrieve helper class
     *
     * @return FireGento_AdminMonitoring_Helper_Data Helper Instance
     */
    public function getMonitoringHelper()
    {
        return Mage::helper('firegento_adminmonitoring');
    }

    /**
     * Prepare the grid collection
     *
     * @return FireGento_AdminMonitoring_Block_Adminhtml_History_Grid Self.
     */
    protected function _prepareCollection()
    {
        $collection = Mage::getResourceModel('firegento_adminmonitoring/history_collection');
        $collection->setOrder('created_at', 'DESC');
        $this->setCollection($collection);

        return parent::_prepareCollection();
    }

    /**
     * Prepare the grid columns
     *
     * @return FireGento_AdminMonitoring_Block_Adminhtml_History_Grid Self.
     */
    protected function _prepareColumns()
    {
        $this->addColumn('created_at', array(
            'header' => $this->getMonitoringHelper()->__('Date/Time'),
            'index'  => 'created_at',
            'type'   => 'datetime',
            'width'  => 130
        ));

        $this->addColumn('object_type', array(
            'header' => $this->getMonitoringHelper()->__('Object Type'),
            'index'  => 'object_type',
        ));

        $this->addColumn('object_id', array(
            'header' => $this->getMonitoringHelper()->__('Object ID'),
            'index'  => 'object_id',
            'type'   => 'number',
        ));

        /* @var $adminUsers FireGento_AdminMonitoring_Model_System_Config_Source_History_Action */
        $adminUsers = Mage::getModel('firegento_adminmonitoring/system_config_source_history_action');
        $actionOptions = $adminUsers->toOptionHash();
        $this->addColumn('action', array(
            'header'  => $this->getMonitoringHelper()->__('Action'),
            'index'   => 'action',
            'type'    => 'options',
            'options' => $actionOptions
        ));

        /* @var $adminUsers FireGento_AdminMonitoring_Model_System_Config_Source_History_Status */
        $adminUsers = Mage::getModel('firegento_adminmonitoring/system_config_source_history_status');
        $statusOptions = $adminUsers->toOptionHash();
        $this->addColumn('status', array(
            'header'  => $this->getMonitoringHelper()->__('Status'),
            'index'   => 'status',
            'type'    => 'options',
            'options' => $statusOptions
        ));

        /* @var $adminUsers FireGento_AdminMonitoring_Model_System_Config_Source_Admin_User */
        $adminUsers = Mage::getModel('firegento_adminmonitoring/system_config_source_admin_user');
        $userOptions = $adminUsers->toOptionHash();
        $this->addColumn('user_id', array(
            'header'  => $this->getMonitoringHelper()->__('User'),
            'index'   => 'user_id',
            'type'    => 'options',
            'options' => $userOptions,
        ));

        $this->addColumn('ip', array(
            'header' => $this->getMonitoringHelper()->__('Remote Address'),
            'index'  => 'ip',
            'width'  => 110
        ));

        $this->addColumn('history_message', array(
            'header' => $this->getMonitoringHelper()->__('Message'),
            'index'  => 'history_message',
        ));

        $this->addColumn('object_link', array(
            'header'   => Mage::helper('customer')->__('Link'),
            'sortable' => false,
            'filter'   => false,
            'renderer' => 'firegento_adminmonitoring/adminhtml_history_grid_link',
        ));

        $this->addColumn('row_action',
            array(
                'header'   => Mage::helper('catalog')->__('Action'),
                'width'    => 50,
                'type'     => 'action',
                'getter'   => 'getId',
                'actions'  => array(
                    array(
                        'caption' => Mage::helper('catalog')->__('View'),
                        'url'     => array(
                            'base' => '*/*/view',
                        ),
                        'field'   => 'id'
                    )
                ),
                'filter'   => false,
                'sortable' => false,
                'index'    => 'stores',
            ));

        return parent::_prepareColumns();
    }

    /**
     * Retrieve the row url for the given history entry
     *
     * @param  FireGento_AdminMonitoring_Model_History $row History Model
     * @return bool|string
     */
    public function getRowUrl($row)
    {
        return $this->getUrl('*/*/view', array('id' => $row->getId()));
    }

    /**
     * Retrieve the grid url for the ajax calls in the grid
     *
     * @return string
     */
    public function getGridUrl()
    {
        return $this->getUrl('*/*/grid', array('_current' => true));
    }
}

diff --git a/docs/api/html/source/app/code/community/FireGento/AdminMonitoring/Block/Adminhtml/History/Grid/Link.php.xhtml b/docs/api/html/source/app/code/community/FireGento/AdminMonitoring/Block/Adminhtml/History/Grid/Link.php.xhtml index 1208ad1..fec7451 100644 --- a/docs/api/html/source/app/code/community/FireGento/AdminMonitoring/Block/Adminhtml/History/Grid/Link.php.xhtml +++ b/docs/api/html/source/app/code/community/FireGento/AdminMonitoring/Block/Adminhtml/History/Grid/Link.php.xhtml @@ -1,3 +1,3 @@ phpDox - Source of Link.php

Source of file Link.php

- Size: 1,922 Bytes - Last Modified: 2014-10-26T15:31:53+01:00

/Users/rouven/Sites/firegento/.modman/firegento-adminmonitoring/src/app/code/community/FireGento/AdminMonitoring/Block/Adminhtml/History/Grid/Link.php

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
<?php
/**
 * This file is part of a FireGento e.V. module.
 *
 * This FireGento e.V. module is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License version 3 as
 * published by the Free Software Foundation.
 *
 * This script 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.
 *
 * PHP version 5
 *
 * @category  FireGento
 * @package   FireGento_AdminMonitoring
 * @author    FireGento Team <team@firegento.com>
 * @copyright 2014 FireGento Team (http://www.firegento.com)
 * @license   http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
 */

/**
 * Displays the link to the object in the history if applicable
 *
 * @category FireGento
 * @package  FireGento_AdminMonitoring
 * @author   FireGento Team <team@firegento.com>
 */
class FireGento_AdminMonitoring_Block_Adminhtml_History_Grid_Link
    extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract
{
    /**
     * Renders the given column
     *
     * @param  Varien_Object $row Column Object
     * @throws Exception
     * @return string Rendered column
     */
    public function render(Varien_Object $row)
    {
        if ($row instanceof FireGento_AdminMonitoring_Model_History) {
            /* @var $helper FireGento_AdminMonitoring_Helper_Data */
            $helper = Mage::helper('firegento_adminmonitoring');

            $link = $helper->getRowUrl($row);
            if ($link) {
                return sprintf('<a href="%s">%s</a>', $link, $helper->__('Go To Object'));
            } else {
                return '-';
            }
        } else {
            throw new Exception('Block is only compatible to FireGento_AdminMonitoring_Model_History');
        }
    }
}

+ Size: 1,922 Bytes - Last Modified: 2014-10-26T15:34:44+01:00

/Users/rouven/Sites/firegento/.modman/firegento-adminmonitoring/src/app/code/community/FireGento/AdminMonitoring/Block/Adminhtml/History/Grid/Link.php

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
<?php
/**
 * This file is part of a FireGento e.V. module.
 *
 * This FireGento e.V. module is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License version 3 as
 * published by the Free Software Foundation.
 *
 * This script 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.
 *
 * PHP version 5
 *
 * @category  FireGento
 * @package   FireGento_AdminMonitoring
 * @author    FireGento Team <team@firegento.com>
 * @copyright 2014 FireGento Team (http://www.firegento.com)
 * @license   http://opensource.org/licenses/gpl-3.0 GNU General Public License, version 3 (GPLv3)
 */

/**
 * Displays the link to the object in the history if applicable
 *
 * @category FireGento
 * @package  FireGento_AdminMonitoring
 * @author   FireGento Team <team@firegento.com>
 */
class FireGento_AdminMonitoring_Block_Adminhtml_History_Grid_Link
    extends Mage_Adminhtml_Block_Widget_Grid_Column_Renderer_Abstract
{
    /**
     * Renders the given column
     *
     * @param  Varien_Object $row Column Object
     * @throws Exception
     * @return string Rendered column
     */
    public function render(Varien_Object $row)
    {
        if ($row instanceof FireGento_AdminMonitoring_Model_History) {
            /* @var $helper FireGento_AdminMonitoring_Helper_Data */
            $helper = Mage::helper('firegento_adminmonitoring');

            $link = $helper->getRowUrl($row);
            if ($link) {
                return sprintf('<a href="%s">%s</a>', $link, $helper->__('Go To Object'));
            } else {
                return '-';
            }
        } else {
            throw new Exception('Block is only compatible to FireGento_AdminMonitoring_Model_History');
        }
    }
}

diff --git a/docs/api/html/source/app/code/community/FireGento/AdminMonitoring/Block/Adminhtml/History/Grid/index.xhtml b/docs/api/html/source/app/code/community/FireGento/AdminMonitoring/Block/Adminhtml/History/Grid/index.xhtml index 433a577..f43c980 100644 --- a/docs/api/html/source/app/code/community/FireGento/AdminMonitoring/Block/Adminhtml/History/Grid/index.xhtml +++ b/docs/api/html/source/app/code/community/FireGento/AdminMonitoring/Block/Adminhtml/History/Grid/index.xhtml @@ -65,7 +65,7 @@

Source of FireGento_AdminMonitoring

This project consists of 54 directories, containing - a total of 62 files. + a total of 63 files.