diff --git a/extensions/webservices/joomla/site.content.1.0.0.php b/extensions/webservices/joomla/site.content.1.0.0.php new file mode 100755 index 00000000000..0711f74279e --- /dev/null +++ b/extensions/webservices/joomla/site.content.1.0.0.php @@ -0,0 +1,58 @@ +title = $data->title; + // $article->alias = JFilterOutput::stringURLSafe(time()); + $article->alias = JFilterOutput::stringURLSafe($data->title); + $article->introtext = '

'.$data->description.'

'; + $article->created = JFactory::getDate()->toSQL();; + $article->created_by_alias = $data->user; + $article->state = 1; + $article->access = 1; + $article->metadata = '{"page_title":"'.$data->title.'","author":"'.$data->user.'","robots":""}'; + $article->language = '*'; +// $article->catid = 1; + + if (!$article->check()) { + throw new Exception($article->getError()); + return FALSE; + } + + if (!$article->store(TRUE)) { + throw new Exception($article->getError()); + return FALSE; + } + } +} diff --git a/extensions/webservices/joomla/site.content.1.0.0.wsdl b/extensions/webservices/joomla/site.content.1.0.0.wsdl new file mode 100644 index 00000000000..f258d07ff61 --- /dev/null +++ b/extensions/webservices/joomla/site.content.1.0.0.wsdl @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/extensions/webservices/joomla/site.content.1.0.0.xml b/extensions/webservices/joomla/site.content.1.0.0.xml new file mode 100644 index 00000000000..8c8317e669c --- /dev/null +++ b/extensions/webservices/joomla/site.content.1.0.0.xml @@ -0,0 +1,28 @@ + + + content + + + + + content + 1.0.0 + com_{webserviceName} + + + + + + + + + + + + + + + + + +