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
var mime_types = [ | |
'video/x-ms-asf', | |
'video/x-ms-wmv', | |
'video/x-ms-wmx', | |
'video/x-ms-wm', | |
'video/avi', | |
'video/divx', | |
'video/x-flv', | |
'video/mpeg', | |
'video/quicktime', |
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 | |
// Usage | |
echo $db->replacePrefix((string) $query) ; | |
// Example | |
$db = JFactory::getDbo(); | |
$query = $db->getQuery(true); | |
$query->select( 'id' ); | |
$query->from($db->quoteName('#__kunena_categories')); | |
$query->where($db->quoteName('parent_id') . '=' . $db->quote( $parent_id )); |
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 | |
.... | |
class MyCliClass extends JApplicationCli | |
{ | |
// .... | |
public function createUser( $name, $username, $password, $email ) | |
{ | |
$data = array( | |
'username' => $username, | |
'name' => $name, |
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 | |
$topFilesFinder = PhpCsFixer\Finder::create() | |
->in(array(__DIR__ . '/libraries')) | |
->files() | |
->depth(0); | |
$mainFinder = PhpCsFixer\Finder::create() | |
->in( | |
array( | |
__DIR__ . '/libraries/cms', | |
__DIR__ . '/libraries/joomla', |