Hi there, I'll try to explain what I want in different manners...
I'm looking for a way to insert and update data represented as JSON (or any other format) as a piece of 'content' (part of a contenttype).
I'm looking for a way to import, but automatically (not via the importer plugin). The import should not be told about the chosen storage. I'm looking for an easy way to 'hook-in'. Is it possible. I couldn't find documentation about this, nor by quickly walking trough the code.
I'm looking for something like ...
<?php // I'm just making this all up! .....
require_once("seblodFramework.php");
$sebapp = new sebApp;
// get data from a webservice. For ex. a book (say that the key/value pairs are exactly named as would be expected later)
$jsonData = file_get_contents('http://restul.api/book/123')
$book = json_decode($jsonData);
// insert the book (there's a content type 'books'
$sebapp->insert($book, 'books');
// or $sebapp->update($id, $book, 'books');
Does anyone have more information on this? A while ago (1 year ago) I noticed some 'interface' in the code. But can't find it anymore nor anyone mentioning is. Am I looking over it?
Thank you in advance.