예제 #1
0
<?php

/**
 * @version    $Id$
 * @package    JSN_Framework
 * @author     JoomlaShine Team <*****@*****.**>
 * @copyright  Copyright (C) 2012 JoomlaShine.com. All Rights Reserved.
 * @license    GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Websites: http://www.joomlashine.com
 * Technical Support:  Feedback - http://www.joomlashine.com/contact-us/get-support.html
 */
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// Import JSN Config Helper class
jsnimport('joomlashine.config.helper');
/**
 * View class of JSN Config library.
 *
 * To implement <b>JSNConfigView</b> class, create a view file in
 * <b>administrator/components/com_YourComponentName/views</b> folder
 * then put following code into that file:
 *
 * <code>class YourComponentPrefixViewConfig extends JSNConfigView
 * {
 * }</code>
 *
 * Finally, put the method call below into the <b>tmpl/default.php</b> template
 * file of that view to display configuration page:
 *
 * <code>JSNConfigHelper::render($this->config);</code>
예제 #2
0
/**
 * @version    $Id$
 * @package    JSN_Framework
 * @author     JoomlaShine Team <*****@*****.**>
 * @copyright  Copyright (C) 2012 JoomlaShine.com. All Rights Reserved.
 * @license    GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Websites: http://www.joomlashine.com
 * Technical Support:  Feedback - http://www.joomlashine.com/contact-us/get-support.html
 */
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// Import necessary Joomla library
jimport('joomla.filesystem.folder');
// Import image manipulation library
jsnimport('3rd-party.ace-media-image.image');
/**
 * Image manipulation class.
 *
 * @package  JSN_Framework
 * @since    1.0.0
 */
class JSNUtilsImage
{
    /**
     * Resize an image and save to given destination.
     *
     * @param   string  $source  Path to source image.
     * @param   string  $dest    Path to the location where resized image will be stored.
     * @param   array   $size    Either array('width' => new_width, 'height' => new_height) or array(0 => new_width, 1 => new_height).
     * @param   string  $name    Custom name for resized image file.
예제 #3
0
/**
 * @version    $Id$
 * @package    JSN_Framework
 * @author     JoomlaShine Team <*****@*****.**>
 * @copyright  Copyright (C) 2012 JoomlaShine.com. All Rights Reserved.
 * @license    GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Websites: http://www.joomlashine.com
 * Technical Support:  Feedback - http://www.joomlashine.com/contact-us/get-support.html
 */
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// Import Joomla file library
jimport('joomla.filesystem.file');
// Import HTTP client library
class_exists('http_class') or jsnimport('3rd-party.httpclient.http');
/**
 * HTTP client class.
 *
 * @package  JSN_Framework
 * @since    1.0.0
 */
class JSNUtilsHttp
{
    /**
     * Fetch a remote URI then return results.
     *
     * If this method is triggered without the second parameter, <b>$target</b>, then
     * result will be return in the following format:
     *
     * <pre>array(
예제 #4
0
<?php

/**
 * @version    $Id$
 * @package    JSN_Framework
 * @author     JoomlaShine Team <*****@*****.**>
 * @copyright  Copyright (C) 2012 JoomlaShine.com. All Rights Reserved.
 * @license    GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Websites: http://www.joomlashine.com
 * Technical Support:  Feedback - http://www.joomlashine.com/contact-us/get-support.html
 */
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// Import JSN Update Helper class
jsnimport('joomlashine.update.helper');
/**
 * View class of JSN Update library.
 *
 * To implement <b>JSNUpdateView</b> class, create a view file in
 * <b>administrator/components/com_YourComponentName/views</b> folder
 * then put following code into that file:
 *
 * <code>class YourComponentPrefixViewUpdate extends JSNUpdateView
 * {
 * }</code>
 *
 * Finally, put the method call below into the <b>tmpl/default.php</b> template
 * file of that view to display product update page:
 *
 * <code>JSNUpdateHelper::render($this->product);</code>
예제 #5
0
<?php

/**
 * @version    $Id$
 * @package    JSN_Framework
 * @author     JoomlaShine Team <*****@*****.**>
 * @copyright  Copyright (C) 2012 JoomlaShine.com. All Rights Reserved.
 * @license    GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Websites: http://www.joomlashine.com
 * Technical Support:  Feedback - http://www.joomlashine.com/contact-us/get-support.html
 */
// No direct access to this file
defined('_JEXEC') or die('Restricted access');
// Import JSN Upgrade Helper class
jsnimport('joomlashine.upgrade.helper');
/**
 * View class of JSN Upgrade library.
 *
 * To implement <b>JSNUpgradeView</b> class, create a view file in
 * <b>administrator/components/com_YourComponentName/views</b> folder
 * then put following code into that file:
 *
 * <code>class YourComponentPrefixViewUpgrade extends JSNUpgradeView
 * {
 * }</code>
 *
 * Finally, put the method call below into the <b>tmpl/default.php</b> template
 * file of that view to display product upgrade page:
 *
 * <code>JSNUpgradeHelper::render(