⚝
One Hat Cyber Team
⚝
Your IP:
216.73.217.4
Server IP:
41.128.143.86
Server:
Linux host.raqmix.cloud 6.8.0-1025-azure #30~22.04.1-Ubuntu SMP Wed Mar 12 15:28:20 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.3.23
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
psa-horde
/
nag
/
lib
/
Driver
/
Edit File: Smartlist.php
<?php /** * Nag storage driver for handling smart tasklists. * * See the enclosed file COPYING for license information (GPL). If you * did not receive this file, see http://www.horde.org/licenses/gpl. * * @author Michael J Rubinsky <mrubinsk@horde.org> * @package Nag */ class Nag_Driver_Smartlist extends Nag_Driver { /** * The composed Nag_Driver * * @var Nag_Driver */ protected $_driver; /** * The share object the smartlist is based on. * * @var array An array of criteria */ protected $_share; /** * Constructs a new SQL storage object. * * @param string $tasklist The tasklist to load. * @param array $params A hash containing connection parameters. */ public function __construct($tasklist, $params = array()) { $this->_driver = $params['driver']; $this->_share = $GLOBALS['nag_shares']->getShare($tasklist); $this->_search = unserialize($this->_share->get('search')); $this->tasks = new Nag_Task(); } public function add(array $task) { throw new Nag_Exception(_("Cannot add tasks to smart lists.")); } /** * Needed to satisfy the abstract parent class. */ protected function _add(array $task) { } public function modify($taskId, array $task) { $this->_driver->modify($taskId, $task); } public function _modify($taskId, array $task) { } public function delete($taskId) { $this->_driver->delete($taskId); } protected function _delete($taskId) { } /** * @TODO */ public function deleteAll() { } public function _deleteAll() { } /** * Return the list of tasks that match this smart list's search criteria. * */ public function retrieve() { $this->tasks = $this->_search->getSlice(); } public function getChildren($parentId, $include_history = true) { return $this->_driver->getChildren($parentId, $include_history); } public function get($taskId) { return $this->_driver->get($taskId); } public function getByUID($uid) { return $this->_driver->getByUID($uid); } }
Simpan