This file contains 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 | |
/** | |
* @copyright Copyright (C) 2011 - 2014 SMS Taiwan, Inc. All rights reserved. | |
* @license GNU General Public License version 2 or later; | |
*/ | |
/** | |
* Recursive print variables and limit by level. | |
* | |
* @param mixed $data The variable you want to dump. |
This file contains 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
SQL_CALC_FOUND_ROWS SELECT ... | |
SELECT FOUND_ROWS(); |
This file contains 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 | |
abstract class OptionTypeHelper | |
{ | |
static public function add($value, $text, $type = 'location') | |
{ | |
$db = JFactory::getDbo(); | |
$obj = new Stdclass; | |
This file contains 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
/** | |
* Class ${NAME} | |
* | |
* @since 1.0 | |
*/ |
This file contains 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 | |
JHtml::_('bootstrap.tooltip'); | |
?> | |
<a class="hasTooltip" title="This is description" href="#" /> |
This file contains 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 Joomla.Site | |
* @subpackage com_flower | |
* @author Simon ASika <asika32764@gmail.com> | |
* @copyright Copyright (C) 2013 Asikart. All rights reserved. | |
* @license GNU General Public License version 2 or later; see LICENSE.txt | |
*/ | |
// No direct access |
This file contains 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 | |
/** | |
* @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\Data; | |
use Psr\Cache\CacheInterface; |
This file contains 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 | |
$params = JComponentHelper::getParams('com_bamahome'); | |
$foo = $params->get('foo', 'bar'); |
This file contains 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 | |
/** | |
* Part of crm project. | |
* | |
* @copyright Copyright (C) 2011 - 2014 SMS Taiwan, Inc. All rights reserved. | |
* @license GNU General Public License version 2 or later; see LICENSE | |
*/ | |
/** | |
* Class IcrmHelperType |
This file contains 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 | |
JModelLegacy:addIncludePath(JPATH_ROOT . '/components/com_foo/models'); | |
$model = JModelLegacy::getInstance('Item', 'FooModel', array('ignore_request' => true)); | |
$model->setState('foo.bar', 'yoo'); | |
$item = $model->getItem(); |