This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @package Molajo | |
* @copyright 2012 Amy Stephen. All rights reserved. | |
* @license GNU General Public License Version 2, or later http://www.gnu.org/licenses/gpl.html | |
*/ | |
namespace Molajo\Service\Services\Configuration; | |
use Molajo\Application; | |
use Molajo\Service\Services; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<model | |
name="Messages" | |
catalog_type_id="0" | |
table="#__dummy" | |
primary_key="" | |
primary_prefix="" | |
get_customfields="0" | |
get_item_children="0" | |
use_special_joins="0" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @package Molajo | |
* @copyright 2012 Amy Stephen. All rights reserved. | |
* @license GNU General Public License Version 2, or later http://www.gnu.org/licenses/gpl.html | |
*/ | |
namespace Molajo\Service\Services\Language; | |
use Molajo\Service\Services; | |
use Molajo\Extension\Helper\ExtensionHelper; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$session = JFactory::getSession(); | |
$value = $session->get('first_article_found', 0); | |
if ($value == 0) { | |
$session->set('first_article_found', 1); | |
} else { | |
return; | |
} | |
//do your thing. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @package Molajo | |
* @copyright 2012 Amy Stephen. All rights reserved. | |
* @license GNU GPL v 2, or later and MIT, see License folder | |
*/ | |
namespace Molajo\Service\Services\Cache; | |
use Molajo\Service\Services; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @package Molajo | |
* @copyright 2012 Amy Stephen. All rights reserved. | |
* @license GNU GPL v 2, or later and MIT, see License folder | |
* | |
* Place in the root of your website - execute it - and copy the results into your .gitignore | |
*/ | |
$current_path = __DIR__; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Execute the SQL statement. | |
* | |
* @return mixed A database cursor resource on success, boolean false on failure. | |
* | |
* @since 12.1 | |
* @throws RuntimeException | |
*/ | |
public function execute() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @package Molajo | |
* @copyright 2012 Individual Molajo Contributors. All rights reserved. | |
* @license GNU GPL v 2, or later and MIT, see License folder | |
*/ | |
namespace Molajo\Service\Services\Exception; | |
use Molajo\Service\Services; | |
use \Exception; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @package Molajo | |
* @copyright 2012 Amy Stephen. All rights reserved. | |
* @license GNU GPL v 2, or later and MIT, see License folder | |
*/ | |
namespace Molajo\Service; | |
use Molajo\Application; | |
use Molajo\Service\Services\Configuration\ConfigurationService; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unset($this->model_registry_name); | |
$this->onAfterSetDataobjectEvent(); | |
Services::Registry()->get($this->model_registry_name, '*'); |