mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-01 11:12:42 +01:00
1b4f03b5a8
Summary: Begin implementing generic application search and refactoring paste search. Test Plan: See if the paste search still works. Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5621
25 lines
549 B
PHP
25 lines
549 B
PHP
<?php
|
|
|
|
/**
|
|
* @group search
|
|
*/
|
|
final class PhabricatorSavedQuery extends PhabricatorSearchDAO {
|
|
|
|
protected $parameters = array();
|
|
|
|
public function getConfiguration() {
|
|
return array(
|
|
self::CONFIG_SERIALIZATION => array(
|
|
'parameters' => self::SERIALIZATION_JSON), )
|
|
+ parent::getConfiguration();
|
|
}
|
|
|
|
public function setParameter($key, $value) {
|
|
$this->parameters[$key] = $value;
|
|
return $this;
|
|
}
|
|
|
|
public function getParameter($key, $default = null) {
|
|
return idx($this->parameters, $key, $default);
|
|
}
|
|
}
|