"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/system/Papaya/Database/Interfaces/Access/Aggregation.php" between
papayacms-core-6.7.12.tar.gz and papayacms-core-6.8.0.tar.gz

About: papaya is a Content Management System.

Aggregation.php  (papayacms-core-6.7.12):Aggregation.php  (papayacms-core-6.8.0)
<?php <?php
/**
* papaya CMS
*
* @copyright 2000-2018 by papayaCMS project - All rights reserved.
* @link http://www.papaya-cms.com/
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU General Pu
blic License, version 2
*
* You can redistribute and/or modify this script under the terms of the GNU Ge
neral Public
* License (GPL) version 2, provided that the copyright and license notes, incl
uding these
* lines, remain unmodified. papaya is distributed in the hope that it will be
useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY o
r FITNESS
* FOR A PARTICULAR PURPOSE.
*/
namespace Papaya\Database\Interfaces\Access;
use Papaya\Application; namespace Papaya\Database\Interfaces\Access {
use Papaya\Database;
trait Aggregation { use Papaya\Database\Accessible\Aggregation as DatabaseAccessibleAggregation;
use Application\Access\Aggregation;
/** /**
* Database read uri * @deprecated Renamed to \Papaya\Database\Accessible\Aggregation
*
* @var string|null
*/ */
private $_databaseURIs = [ trait Aggregation {
'read' => NULL, use DatabaseAccessibleAggregation;
'write' => NULL
];
/**
* Stored database access object
*
* @var Database\Access
*/
protected $_databaseAccessObject;
/**
* @param null|string $read
* @param null|string $write
*/
public function setDatabaseURIs($read, $write = NULL) {
$this->_databaseURIs = [
'read' => $read,
'write' => $write
];
}
/**
* Set database access object
*
* @param Database\Access $databaseAccessObject
*/
public function setDatabaseAccess(Database\Access $databaseAccessObject) {
$this->_databaseAccessObject = $databaseAccessObject;
}
/**
* Get database access object
*
* @return Database\Access
*/
public function getDatabaseAccess() {
if (NULL === $this->_databaseAccessObject) {
$this->_databaseAccessObject = new Database\Access(
$this, $this->_databaseURIs['read'], $this->_databaseURIs['write']
);
if ($this instanceof Application\Access) {
$this->_databaseAccessObject->papaya($this->papaya());
}
}
return $this->_databaseAccessObject;
} }
} }
 End of changes. 5 change blocks. 
73 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)