generateBasisElement.php 1.01 KB
<?
require_once("../../../include/config.php");
$_LOSPDIR = $_LOSP_PATH_TO_ROOT = '../../../';
$_LOSP_DEV = false;
require_once($_LOSPDIR."include/System/php/RequireClass.inc.php");

//require_once("generateBasisElement_ExampleData.php");
require_once 'generateBasisElement_VossUrlBEData.php';


$DB = StorableFactory::create($_LOSP_STORABLE_KINDOF, $_LOSP_STORABLE_DATA);

$HostAccount = BasisElement::createNewInstance($DB, 'Account', 0, $param_PartOf=null);
$HostAccount->setObjVar('ID', $Account_ID);
$HostAccount->loadObject($HostAccount, $DB);
$HostAccount->setObjVar('LoginState', true);
$HostAccount->loadMainProfile($DB);
$HostAccount->setAuthorProfileID($Account_ID);


CONFIG::generateSocialNetworkTree($HostAccount, $DB);

$result = Controller::doGeneralBefore($HostAccount, $DB, CONFIG::getSocialNetworkTree());

print_r($result);

echo "\n Account_ID=$Account_ID;\n AuthorProfileID=$AuthorProfileID;\n PartOfID=$PartOfID\n";


//foreach($result['makeNew'] as $key) {
//
//}
//file_put_contents('test.txt','####');

?>