예제 #1
0
 public function adminAddObjectToContainer($sContainerName, $sObjectType, $iSort = 0)
 {
     $oContentObject = new ContentObject();
     $oContentObject->setPageId($this->oPage->getId());
     $oContentObject->sortIntoNew($sContainerName, $iSort);
     $oContentObject->setObjectType($sObjectType);
     $oContentObject->save();
     return $this->paramsForObject($oContentObject);
 }