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 | |
if(class_exists('Reg') == false){ | |
/** | |
* Class Reg heir Registry | |
* This class has magic methods for simple use properties | |
* Example: $reg->prop1; $reg->prop2 = 123; | |
*/ | |
class Reg extends \Joomla\Registry\Registry{ | |
function __get($nameProperty) { |
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
-- Query to add articles to the database | |
INSERT INTO `joom_content`(`asset_id`, `state`,`created_by`,`created_by_alias`,`access`,`version`,`featured`,`publish_up`,`language`, `created`,`modified`, `images`,`urls`,`attribs`,`metadata`, | |
`catid`, `alias`, `title`, `introtext`, `fulltext`, `note`, `ordering`, `metadesc`) VALUES | |
(0,1, 1,"",1,1,0, 0,'*', NOW(),NOW(), '{}','{}','{}','{}', | |
2, '__alias__', 'Title!', 'Intro!', '<p>Full Text</p>', 'Note', 0, 'metadesc'); | |
-- Mandatory Query to add the process of articles required for the work | |
-- It runs 1 time for all articles after adding articles. | |
INSERT INTO joom_workflow_associations (item_id, stage_id, extension) |