Skip to content

Instantly share code, notes, and snippets.

@AmyStephen
AmyStephen / 1. Molajo.php
Created April 29, 2011 22:08
Site Single Model: Molajo (Top) comparison to Joomla! 1.6 (Bottom)
<?php
/**
* @version $id: view.html.php
* @package Molajo
* @subpackage Multiple View
* @copyright Copyright (C) 2011 Individual Molajo Contributors. All rights reserved.
* @license GNU General Public License Version 2, or later http://www.gnu.org/licenses/gpl.html
*/
defined('MOLAJO') or die;
@AmyStephen
AmyStephen / 1. Molajo.php
Created April 30, 2011 00:50
Administrator Multiple Model: Molajo (Top) comparison to Joomla! 1.6 (Bottom)
<?php
/**
* @version $id: things.php
* @package Molajo
* @subpackage Multiple Model
* @copyright Copyright (C) 2011 Individual Molajo Contributors. All rights reserved.
* @license GNU General Public License Version 2, or later http://www.gnu.org/licenses/gpl.html
*/
defined('MOLAJO') or die;
@AmyStephen
AmyStephen / 1. Molajo.php
Created April 30, 2011 00:48
Administrator Controller: Molajo (Top) comparison to Joomla! 1.6 (Bottom)
<?php
/**
* @version controller.php
* @package Molajo
* @subpackage Things Controller
* @copyright Copyright (C) 2011 Individual Molajo Contributors. All rights reserved.
* @license GNU General Public License Version 2, or later http://www.gnu.org/licenses/gpl.html
*/
defined('MOLAJO') or die;
@AmyStephen
AmyStephen / 1. Molajo.php
Created April 30, 2011 00:53
Administrator Single Model: Molajo (Top) comparison to Joomla! 1.6 (Bottom) created about 2 hours ago
<?php
/**
* @version $id: com_thing
* @package Molajo
* @subpackage Single Model
* @copyright Copyright (C) 2011 Individual Molajo Contributors. All rights reserved.
* @license GNU General Public License Version 2, or later http://www.gnu.org/licenses/gpl.html
*/
defined('MOLAJO') or die;
@AmyStephen
AmyStephen / 1. Molajo.php
Created April 30, 2011 01:23
Administrator Manager Layout: Molajo (Top) comparison to Joomla! 1.6 (Bottom) created about 2 hours ago
<?php
/**
* @version $id: layout
* @package Molajo
* @subpackage Multiple View
* @copyright Copyright (C) 2011 Individual Molajo Contributors. All rights reserved.
* @license GNU General Public License Version 2, or later http://www.gnu.org/licenses/gpl.html
*/
defined('MOLAJO') or die;
/**
* Method to check JUser object authorisation against an access control
* object and optionally an access extension object
*
* @param string $action The name of the action to check for permission.
* @param string $assetname The name of the asset on which to perform the action.
*
* @return boolean True if authorised
* @since 11.1
*/
@AmyStephen
AmyStephen / .gitignore
Created September 22, 2011 16:10
Git Ignore that allows install of Joomla 1.7
.idea
.sass-cache
bu_installation
installation
/administrator/cache/
/administrator/components/com_admin/
/administrator/components/com_banners/
/administrator/components/com_cache/
/administrator/components/com_categories/
/administrator/components/com_checkin/
$options = array(
'driver' => $database_type,
'host' => $host,
'user' => $user,
'password' => $password,
'database' => $db,
'prefix' => $dbprefix);
try {
$this->db = JDatabaseFactory::getDriver($database_type, $options);
@AmyStephen
AmyStephen / gist:2440666
Created April 22, 2012 01:19
JLoggerEmail for Molajo
<?php
/**
* @package Joomla.Platform
* @subpackage Log
*
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
*/
namespace Joomla\log\loggers;
@AmyStephen
AmyStephen / RegistryService.php
Created April 27, 2012 15:00
Molajo RegistryService - dependancy injection
<?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;
use Molajo\Service\Services;