The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119.
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
<?xml version="1.0" encoding="UTF-16" standalone="no"?> | |
<snippets> | |
<category filters="*" id="category_1278465230540" initial_state="1" label="Joomla Plugins" largeicon="" smallicon=""> | |
<description><![CDATA[Snippets specifically for support Joomla modules.]]></description> | |
<item category="category_1278465230540" class="" editorclass="" id="item_1278465575233" label="Master Plugin File" largeicon="" smallicon="" snippetProvider="org.eclipse.wst.common.snippets.ui.TextSnippetProvider"> | |
<description><![CDATA[Unnamed Template]]></description> | |
<content><![CDATA[jimport('joomla.plugin.plugin'); | |
/** | |
* ${GROUP} ${NAME} Plugin. |
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
<?xml version="1.0" encoding="UTF-16" standalone="no"?> | |
<snippets> | |
<category filters="*" id="category_1311161288555" initial_state="1" label="Packaging" largeicon="" smallicon=""> | |
<description><![CDATA[Snippets to assist with creating extension packages for distribution.]]></description> | |
<item category="category_1311161288555" class="" editorclass="" id="item_1311161491543" label="Basic installer class" largeicon="" smallicon="" snippetProvider="org.eclipse.wst.common.snippets.ui.TextSnippetProvider"> | |
<description><![CDATA[The basic installer class that can be created in a installer.php file in the main directory of the extension.]]></description> | |
<content><![CDATA[/** | |
* @package ${PACKAGE} | |
* @subpackage ${SUBPACKAGE} | |
* @since ${SINCE} |
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
use Psr\Log; | |
class TheTest extends \PHPUnit_Framework_TestCase | |
{ | |
/** | |
* The class we are testing. | |
*/ | |
protected $instance; | |
/** |
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
function extractColumn(arr, column) { | |
function reduction(previousValue, currentValue) { | |
previousValue.push(currentValue[column]); | |
return previousValue; | |
} | |
return arr.reduce(reduction, []); | |
} |
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
/** | |
* Collection Interface. | |
* | |
* Concrete implementations would exist INSIDE the boundary interfaces. | |
* | |
* - Must be able to add one or more entities to the collection. | |
* - Must be able to find entities in the collection. | |
* - Must be able update entities in the collection. | |
* - Must be able to remove entities from the collection. | |
* |
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
{ | |
"devDependencies": { | |
"app-root-path": "^1.0.0", | |
"jshint": "^2.7.0", | |
"mocha": "^2.2.5", | |
"supertest": "^1.0.1" | |
}, | |
"scripts": { | |
"check": "npm outdated", | |
"lint": "node_modules/.bin/jshint lib/ test/", |
model.create(someData)
.catch(function (err) {
console.error('ValidationError:', err.ValidationError);
console.error('Message:', err.message);
});
Outputs:
ValidationError: {