Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function batch_categories()
- {
- $cid = $this->app->input->get('cid', '', 'array');
- if ( $task == 'copy' )
- {
- $categories = $this->getCategories($cid);
- foreach ($categories as $cat)
- {
- list($title, $alias) = $this->_generateNewTitle($cat->id, $cat->alias, $cat->name);
- $_POST['name'] = $title;
- $_POST['alias'] = $alias;
- $_POST['parent_id'] = intval($cat_parent);
- $_POST['catid'] = 0;
- $this->_save();
- }
- $this->app->enqueueMessage(JText::_('BATCH_COPY_SUCCESS'));
- }
- }
- protected function _save()
- {
- $post = $this->app->input->getArray();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement