public
__construct( JRA\Interfaces\ConfigInterface $pConfig, JRA\Factories\InternalFactory $pInternalFactory )
JRA\Interfaces\ConfigInterface
JRA\Factories\InternalFactory
APIFacade constructor.
public boolean|stdClass
login( )
Login on the website, without depending on an authentication method.
logout( )
Logout on the website, without depending on an authentication method.
public JRA\Objects\Response\SessionResponseObject
JRA\Objects\Response\SessionResponseObject
getSessions( )
Get all active sessions.
updateProfile( )
Update the own user profile.
JRA\Exceptions\UserAPIException
updateProfileById( )
Update user profile of other users by id.
public JRA\Objects\Response\CategoryListResponseObject
JRA\Objects\Response\CategoryListResponseObject
getAllCategories( )
Get all categories from joomla.
getAllSubCategoriesByParentId( integer $pId )
Get all categories which are a subcategory an parent category, which is selected by id.
public JRA\Objects\Response\ContentListResponseObject
JRA\Objects\Response\ContentListResponseObject
getAllContents( )
Get all content from joomla.
public JRA\Objects\Response\CategoryFieldsResponseObject
JRA\Objects\Response\CategoryFieldsResponseObject
getAllCategoryFields( )
Get all database fields with the field configuration from an category.
getAllContentsByCategoryId( integer $pId )
Get all content which is under one category by id.
getCategoryById( integer $pId )
Get an single category by id.
public JRA\Objects\Response\ContentFieldsResponseObject
JRA\Objects\Response\ContentFieldsResponseObject
getAllContentFields( )
Get all database fields with the field configuration from an content.
public JRA\Objects\Response\ContentResponseObject
JRA\Objects\Response\ContentResponseObject
deleteContentById( integer $pId )
Delete an content by id.
getContentById( integer $pId )
Get an single content by id.
public JRA\Objects\Response\MsgResponseObject
JRA\Objects\Response\MsgResponseObject
createContent( JRA\Objects\CreateContentObject $pContent )
JRA\Objects\CreateContentObject
Create an content from an create content object.
updateContentById( JRA\Objects\UpdateContentObject $pContent, integer $pId )
JRA\Objects\UpdateContentObject
Update an content by an update content object. The id for updating the right content is inside the update content object.
public JRA\Objects\Response\JResponseObject
JRA\Objects\Response\JResponseObject
loginToken( string $pToken )
Make an login request with an token.
public JRA\Objects\Response\UserLoginResponseObject
JRA\Objects\Response\UserLoginResponseObject
loginUserCredentials( string $pUsername, string $pPassword )
Login with the user credentials.
public JRA\Objects\Response\UserLogoutResponseObject
JRA\Objects\Response\UserLogoutResponseObject
logoutUserSession( string $pUsername, string $pSession )
Logout an specified user session.
getCurrentUser( )
Get the current logged in user.