AnsweredAssumed Answered

PHP SDK fill aspects

Question asked by wolfgang.freund on Nov 16, 2010
Latest reply on Jun 8, 2011 by ddanninger
Hi there,

i use the php sdk, and it really works quite well.

I can add aspects via the following code:

$contentNode->addAspect("cm_titled");
$contentNode->addAspect("cm_versionable");
$contentNode->addAspect("cm_taggable");
$contentNode->addAspect("{http://www.someco.com/model/content/1.0}webable");
$contentNode->addAspect("{http://www.someco.com/model/content/1.0}productRelated");

But my question is now, how can i fill these aspects? So for example, I give a node the aspect 'cm_taggable'. How do i now add tags lik 'alfresco', 'invoice'.

What I search for is a method like.


$tags = array("alfresco", "invoice");
$contentNode->addAspect("cm_taggable");
$contentNode->addTags($tags);

Thanks a lot.

Outcomes