- is configuring your initial instance. This would be a good time for a coffee break...
-
-
-Items[0]->Code . ": " . DataFX::$Errors->Items[0]->Message);
- Message(DataFX::$Errors->Items[0]->Query);
- return true;
- }
-
- // create the Users table
- /*
- $tables = array
- (
- new Table("MarketResourceBankDetails", "bankdetail_", array
- (
- // $name, $dataType, $size, $value, $allowNull, $primaryKey, $autoIncrement
- new Column("ResourceTypeID", "INT", null, null, false),
- new Column("Name", "VARCHAR", 50, null, false),
- new Column("TitleSingular", "VARCHAR", 100, null, false),
- new Column("TitlePlural", "VARCHAR", 100, null, false)
- )),
- new Table("Tasks", "task_", array
- (
- // $name, $dataType, $size, $value, $allowNull, $primaryKey, $autoIncrement
- new Column("ID", "INT", null, null, false, true, true),
- new Column("TenantID", "INT", null, null, false),
- new Column("Title", "VARCHAR", 100, null, false),
- new Column("URL", "LONGTEXT", null, null, false)
- )),
- new Table("Themes", "theme_", array
- (
- // $name, $dataType, $size, $value, $allowNull, $primaryKey, $autoIncrement
- new Column("ID", "INT", null, null, false, true, true),
- new Column("TenantID", "INT", null, null, false),
- new Column("Name", "VARCHAR", 100, null, false),
- new Column("Title", "VARCHAR", 100, null, false),
- new Column("CreationUserID", "INT", null, null, false),
- new Column("CreationTimestamp", "DATETIME", null, null, false)
- )),
- new Table("UserEquippedItems", "equippeditem_", array
- (
- new Column("UserID", "INT", null, null, false),
- new Column("ItemID", "INT", null, null, false)
- )),
- new Table("UserInventoryFolders", "inventoryitem_", array
- (
- new Column("ID", "INT", null, null, false),
- new Column("Title", "VARCHAR", 100, null, false),
- new Column("ParentFolderID", "INT", null, null, true)
- )),
- new Table("UserInventoryItems", "inventoryitem_", array
- (
- new Column("UserID", "INT", null, null, false),
- new Column("ItemID", "INT", null, null, false),
- new Column("ParentFolderID", "INT", null, null, true)
- )),
- new Table("UserProfileContents", "content_", array
- (
- // posts by the user on their profile. can be scrolled back and forth like a journal. supports HTML!
- new Column("ID", "INT", null, null, false, true, true),
- new Column("TenantID", "INT", null, null, false),
- new Column("CreationUserID", "INT", null, null, false),
- new Column("CreationTimestamp", "DATETIME", null, null, false),
- new Column("Content", "LONGTEXT", null, null, false)
- )),
- new Table("UserProfileContentFeedbacks", "feedback_", array
- (
- // likes and dislikes for user profile contents
- new Column("ContentID", "INT", null, null, false),
- new Column("FeedbackTypeID", "INT", null, null, false),
- new Column("Comments", "VARCHAR", 200, null, false),
- new Column("CreationUserID", "INT", null, null, false),
- new Column("CreationTimestamp", "DATETIME", null, null, false)
- ))
- );
- */
-
- $tables = array();
-
- $tablefilepath = dirname(__FILE__) . "/Tables/*.inc.php";
- $tablefiles = glob($tablefilepath);
- foreach ($tablefiles as $tablefile)
- {
- require($tablefile);
- }
-
- foreach ($tables as $table)
- {
- if ($table->Exists())
- {
- Message("Table '" . $table->Name . "' already exists, skipping creation");
- }
- else
- {
- $retval = $table->Create();
- if ($retval)
- {
- Success("Created table '" . $table->Name . "'");
- }
- else
- {
- Failure("Could not create table '" . $table->Name . "'");
- Message("Database returned error " . DataFX::$Errors->Items[0]->Code . ": " . DataFX::$Errors->Items[0]->Message);
- Message(DataFX::$Errors->Items[0]->Query);
- }
- }
- }
-
- $tenant = Tenant::Create($_POST["Application_DefaultTenant"], "The default tenant for " . System::$Configuration["Application.Name"] . ".");
- $tablefilepath = dirname(__FILE__) . "/TenantObjects/*.inc.php";
- $tablefiles = glob($tablefilepath);
- foreach ($tablefiles as $tablefile)
- {
- require($tablefile);
- }
-
- require(dirname(__FILE__) . "/DefaultTenant.inc.php");
-?>
-
- BeginContent();
-?>
-
- " style="height: 200px;" />
-
-
- Please provide some information about your server to create the initial tenant. Other
- tenants may be created and removed at any time by entering the Administrator Control Panel.
-
This Objectify installation has not been configured. Please contact the server administrator.
");
- $page->EndContent();
- return false;
- }
- })
- ));
-?>
diff --git a/PHP/Manager/Include/Modules/001-Setup/Tables/000-DataTypes.inc.php b/PHP/Manager/Include/Modules/001-Setup/Tables/000-DataTypes.inc.php
deleted file mode 100644
index 5ed59ae0..00000000
--- a/PHP/Manager/Include/Modules/001-Setup/Tables/000-DataTypes.inc.php
+++ /dev/null
@@ -1,324 +0,0 @@
-" . $input . "");
-EOD
-),
- new RecordColumn("EditorRendererCodeBlob", <<<'EOD'
- echo("");
-EOD
-)
- )),
- new Record(array
- (
- new RecordColumn("Name", "CodeBlob"),
- new RecordColumn("Description", "Allows you to enter script code with a special text editor."),
- new RecordColumn("EncoderCodeBlob", null),
- new RecordColumn("DecoderCodeBlob", null),
- new RecordColumn("ColumnRendererCodeBlob", <<<'EOD'
- echo("
" . $input . "
");
-EOD
-),
- new RecordColumn("EditorRendererCodeBlob", <<<'EOD'
- echo("");
-EOD
-)
- )),
- new Record(array
- (
- new RecordColumn("Name", "Number"),
- new RecordColumn("Description", "Stores numeric data."),
- new RecordColumn("EncoderCodeBlob", null),
- new RecordColumn("DecoderCodeBlob", null),
- new RecordColumn("ColumnRendererCodeBlob", null),
- new RecordColumn("EditorRendererCodeBlob", null)
- )),
- new Record(array
- (
- new RecordColumn("Name", "Boolean"),
- new RecordColumn("Description", "Stores a true/false or yes/no value."),
- new RecordColumn("EncoderCodeBlob", null),
- new RecordColumn("DecoderCodeBlob", null),
- new RecordColumn("ColumnRendererCodeBlob", <<<'EOD'
-echo("");
-EOD
-),
- new RecordColumn("EditorRendererCodeBlob", <<<'EOD'
-echo("");
-EOD
-)
- )),
- new Record(array
- (
- new RecordColumn("Name", "Measurement"),
- new RecordColumn("Description", "Stores measurement data, which is a double-precision floating-point number followed by a unit of measurement."),
- new RecordColumn("EncoderCodeBlob", null),
- new RecordColumn("DecoderCodeBlob", null),
- new RecordColumn("ColumnRendererCodeBlob", null),
- new RecordColumn("EditorRendererCodeBlob", <<<'EOD'
-echo(" ");
-EOD
-)
- )),
- new Record(array
- (
- new RecordColumn("Name", "DateTime"),
- new RecordColumn("Description", "Stores a date and time value."),
- new RecordColumn("EncoderCodeBlob", null),
- new RecordColumn("DecoderCodeBlob", null),
- new RecordColumn("ColumnRendererCodeBlob", null),
- new RecordColumn("EditorRendererCodeBlob", null)
- )),
- new Record(array
- (
- new RecordColumn("Name", "SingleInstance"),
- new RecordColumn("Description", "Represents a property that returns a single TenantObjectInstance object."),
- new RecordColumn("EncoderCodeBlob", <<<'EOD'
-// $input should be a TenantObjectInstance
-if ($input == null)
-{
- $bt = debug_backtrace();
- trigger_error("SingleInstance::Encoder - input is null, did you mean to pass in a blank SingleInstanceProperty?, in " . $bt["file"] . "::" . $bt["function"] . " on line " . $bt["line"] . "; ", E_USER_WARNING);
- return "";
-}
-// encode the property by simply storing the instance ID in the property value.
-$output = "";
-$count = count($input->ValidObjects);
-for ($i = 0; $i < $count; $i++)
-{
- $output .= $input->ValidObjects[$i]->ID;
- if ($i < $count - 1) $output .= ",";
-}
-$output .= ":";
-if ($input != null)
-{
- if ($input->GetInstance() != null) $output .= $input->GetInstance()->ID;
-}
-return $output;
-EOD
-),
- new RecordColumn("DecoderCodeBlob", <<<'EOD'
-// $input should be a String in the format t0,t1,t2:i0,i1,i2,i3... where tx is an ID of a TenantObject that is valid in the property and ix is an ID of a TenantObjectInstance
-// encode the property by simply storing the instance ID of each instance, separated by commas, in the property value.
-$dcb = explode(":", $input);
-$validObjects = explode(",", $dcb[0]);
-$instance = $dcb[1];
-$output = new SingleInstanceProperty();
-
-// loop through all the valid objects and add them to the MultipleInstanceProperty
-$count = count($validObjects);
-for ($i = 0; $i < $count; $i++)
-{
- $output->ValidObjects[] = TenantObject::GetByID($validObjects[$i]);
-}
-
-// assign the instance
-$output->Instance = TenantObjectInstance::GetByID($instance);
-return $output;
-EOD
-),
- new RecordColumn("ColumnRendererCodeBlob", <<<'EOD'
-$inst = $input->Instance;
-echo("
");
-EOD
-)
- )),
- new Record(array
- (
- new RecordColumn("Name", "MultipleInstance"),
- new RecordColumn("Description", "Represents a property that returns an array of TenantObjectInstance objects."),
- new RecordColumn("EncoderCodeBlob", <<<'EOD'
-// $input should be an array of TenantObjectInstance objects
-// encode the property by simply storing the instance ID of each instance, separated by commas, in the property value. the list of valid
-// object types is stored in the first part of the property, separated by a colon.
-if ($input == null)
-{
- PhoenixSNS::Log("MultipleInstance::Encoder input is null - did you mean to pass in a blank MultipleInstanceProperty?");
- return "";
-}
-
-$output = "";
-$count = count($input->ValidObjects);
-for ($i = 0; $i < $count; $i++)
-{
- $output .= $input->ValidObjects[$i]->ID;
- if ($i < $count - 1) $output .= ",";
-}
-$output .= ":";
-$insts = $input->GetInstances();
-$i = 0;
-$count = count($insts);
-foreach ($insts as $inst)
-{
- $output .= $inst->ID;
- if ($i < $count - 1) $output .= ",";
- $i++;
-}
-return $output;
-EOD
-),
- new RecordColumn("DecoderCodeBlob", <<<'EOD'
-// $input should be a String in the format t0,t1,t2:i0,i1,i2,i3... where tx is an ID of a TenantObject that is valid in the property and ix is an ID of a TenantObjectInstance
-// encode the property by simply storing the instance ID of each instance, separated by commas, in the property value.
-if ($input == "")
-{
- $bt = debug_backtrace();
- trigger_error("MultipleInstance::Decoder - input is null, did you mean to pass in a blank MultipleInstanceProperty?, in " . $bt["file"] . "::" . $bt["function"] . " on line " . $bt["line"] . "; ", E_USER_WARNING);
- return null;
-}
-
-$dcb = explode(":", $input);
-$validObjects = explode(",", $dcb[0]);
-$instances = explode(",", $dcb[1]);
-$output = new MultipleInstanceProperty();
-
-// loop through all the valid objects and add them to the MultipleInstanceProperty
-$count = count($validObjects);
-for ($i = 0; $i < $count; $i++)
-{
- $output->ValidObjects[] = TenantObject::GetByID($validObjects[$i]);
-}
-
-// loop through all of the instances and add them to the MultipleInstanceProperty
-$count = count($instances);
-for ($i = 0; $i < $count; $i++)
-{
- $output->AddInstance(TenantObjectInstance::GetByID($instances[$i]));
-}
-return $output;
-EOD
-),
- new RecordColumn("ColumnRendererCodeBlob", <<<'EOD'
-if ($input == null) return;
-if (!is_object($input) || (get_class($input) != "PhoenixSNS\\Objects\\MultipleInstanceProperty"))
-{
- $bt = debug_backtrace();
- trigger_error("Expected MultipleInstanceProperty, got something else in " . $bt[1]["file"] . "::" . $bt[1]["function"] . " at line " . $bt[1]["line"], E_USER_WARNING);
- return;
-}
-$insts = $input->GetInstances();
-echo("
");
-EOD
-)
- ))
- ));
- $tables[] = $tblDataTypes;
-?>
\ No newline at end of file
diff --git a/PHP/Manager/Include/Modules/001-Setup/Tables/000-Languages.inc.php b/PHP/Manager/Include/Modules/001-Setup/Tables/000-Languages.inc.php
deleted file mode 100644
index 04067797..00000000
--- a/PHP/Manager/Include/Modules/001-Setup/Tables/000-Languages.inc.php
+++ /dev/null
@@ -1,20 +0,0 @@
-
\ No newline at end of file
diff --git a/PHP/Manager/Include/Modules/001-Setup/Tables/000-Modules.inc.php b/PHP/Manager/Include/Modules/001-Setup/Tables/000-Modules.inc.php
deleted file mode 100644
index a0f4edc6..00000000
--- a/PHP/Manager/Include/Modules/001-Setup/Tables/000-Modules.inc.php
+++ /dev/null
@@ -1,168 +0,0 @@
-ForeignKeys = array
- (
- new TableForeignKey("ModuleID", new TableForeignKeyColumn($tblModules, $tblModules->GetColumnByName("ID")))
- );
- $tables[] = $tblModuleMenuItems;
-
- $tblModuleObjects = new Table("ModuleObjects", "object_", array
- (
- // $name, $dataType, $size, $value, $allowNull, $primaryKey, $autoIncrement
- new Column("ID", "INT", null, null, false, true, true),
- new Column("ModuleID", "INT", null, null, true),
- new Column("ParentObjectID", "INT", null, null, true),
- new Column("Title", "VARCHAR", 256, null, true),
- new Column("Description", "LONGTEXT", null, null, true)
- ),
- array
- (
- new Record(array
- (
- new RecordColumn("ModuleID", 7),
- new RecordColumn("Title", "Game")
- ))
- ));
- $tblModuleObjects->ForeignKeys = array
- (
- new TableForeignKey("ModuleID", new TableForeignKeyColumn($tblModules, $tblModules->GetColumnByName("ID"))),
- new TableForeignKey("ParentObjectID", new TableForeignKeyColumn($tblModuleObjects, $tblModuleObjects->GetColumnByName("ID")))
- );
- $tables[] = $tblModuleObjects;
-
- $tblModulePages = new Table("ModulePages", "modulepage_", array
- (
- // $name, $dataType, $size, $value, $allowNull, $primaryKey, $autoIncrement
- new Column("ID", "INT", null, null, false, true, true),
- new Column("ModuleID", "INT", null, null, true),
- new Column("ParentPageID", "INT", null, null, true),
- new Column("URL", "VARCHAR", 1024, null, true),
- new Column("Content", "LONGTEXT", null, null, true)
- ),
- array
- (
- new Record(array
- (
- new RecordColumn("ModuleID", 1),
- new RecordColumn("URL", "groups")
- )),
- new Record(array
- (
- new RecordColumn("ModuleID", 1),
- new RecordColumn("URL", "pages")
- )),
- new Record(array
- (
- new RecordColumn("ModuleID", 1),
- new RecordColumn("URL", "forums")
- ))
- ));
- $tblModulePages->ForeignKeys = array
- (
- new TableForeignKey("ModuleID", new TableForeignKeyColumn($tblModules, $tblModules->GetColumnByName("ID"))),
- new TableForeignKey("ParentPageID", new TableForeignKeyColumn($tblModulePages, $tblModulePages->GetColumnByName("ID")))
- );
- $tables[] = $tblModulePages;
-?>
\ No newline at end of file
diff --git a/PHP/Manager/Include/Modules/001-Setup/Tables/001-Tenants.inc.php b/PHP/Manager/Include/Modules/001-Setup/Tables/001-Tenants.inc.php
deleted file mode 100644
index 42797d3d..00000000
--- a/PHP/Manager/Include/Modules/001-Setup/Tables/001-Tenants.inc.php
+++ /dev/null
@@ -1,78 +0,0 @@
-UniqueKeys = array
- (
- new TableKey(array
- (
- new TableKeyColumn("URL")
- ))
- );
- $tables[] = $tblTenants;
-
- $tblTenantProperties = new Table("TenantProperties", "property_", array
- (
- // $name, $dataType, $size, $value, $allowNull, $primaryKey, $autoIncrement
- new Column("ID", "INT", null, null, false, true, true),
- new Column("TenantID", "INT", null, null, true),
- new Column("Name", "VARCHAR", 256, null, false),
- new Column("Description", "LONGTEXT", null, null, true),
- new Column("DataTypeID", "INT", null, null, false),
- new Column("DefaultValue", "LONGBLOB", null, null, true)
- ));
- $tblTenantProperties->ForeignKeys = array
- (
- new TableForeignKey("TenantID", new TableForeignKeyColumn($tblTenants, "ID")),
- new TableForeignKey("DataTypeID", new TableForeignKeyColumn($tblDataTypes, "ID"))
- );
- $tables[] = $tblTenantProperties;
-
- $tblTenantPropertyValues = new Table("TenantPropertyValues", "propval_", array
- (
- // $name, $dataType, $size, $value, $allowNull, $primaryKey, $autoIncrement
- new Column("PropertyID", "INT", null, null, false, true, true),
- new Column("Value", "LONGTEXT", null, null, true)
- ));
- $tblTenantPropertyValues->ForeignKeys = array
- (
- new TableForeignKey("PropertyID", new TableForeignKeyColumn($tblTenantProperties, "ID"))
- );
- $tables[] = $tblTenantPropertyValues;
-
- $tblTenantModules = new Table("TenantModules", "tenantmodule_", array
- (
- // $name, $dataType, $size, $value, $allowNull, $primaryKey, $autoIncrement
- new Column("TenantID", "INT", null, null, false),
- new Column("ModuleID", "INT", null, null, false)
- ));
- $tblTenantModules->ForeignKeys = array
- (
- new TableForeignKey("TenantID", new TableForeignKeyColumn($tblTenants, "ID"))
- );
- $tables[] = $tblTenantModules;
-?>
\ No newline at end of file
diff --git a/PHP/Manager/Include/Modules/001-Setup/Tables/002-TenantObjects.inc.php b/PHP/Manager/Include/Modules/001-Setup/Tables/002-TenantObjects.inc.php
deleted file mode 100644
index 481e6ae2..00000000
--- a/PHP/Manager/Include/Modules/001-Setup/Tables/002-TenantObjects.inc.php
+++ /dev/null
@@ -1,197 +0,0 @@
-ForeignKeys = array
- (
- new TableForeignKey("TenantID", new TableForeignKeyColumn($tblTenants, $tblTenants->GetColumnByName("ID"))),
- new TableForeignKey("ModuleID", new TableForeignKeyColumn($tblModules, $tblModules->GetColumnByName("ID"))),
- new TableForeignKey("ParentObjectID", new TableForeignKeyColumn($tblTenantObjects, $tblTenantObjects->GetColumnByName("ID")))
- );
- $tables[] = $tblTenantObjects;
-
- $tblTenantObjectTitles = new Table("TenantObjectTitles", "entry_", array
- (
- // $name, $dataType, $size, $value, $allowNull, $primaryKey, $autoIncrement
- new Column("ID", "INT", null, null, false, true, true),
- new Column("ObjectID", "INT", null, null, false),
- new Column("LanguageID", "INT", null, null, false),
- new Column("Value", "LONGTEXT", null, null, false)
- ));
- $tblTenantObjectTitles->ForeignKeys = array
- (
- new TableForeignKey("ObjectID", new TableForeignKeyColumn($tblTenantObjects, $tblTenantObjects->GetColumnByName("ID"))),
- new TableForeignKey("LanguageID", new TableForeignKeyColumn($tblLanguages, $tblLanguages->GetColumnByName("ID")))
- );
- $tables[] = $tblTenantObjectTitles;
-
- $tblTenantObjectDescriptions = new Table("TenantObjectDescriptions", "entry_", array
- (
- // $name, $dataType, $size, $value, $allowNull, $primaryKey, $autoIncrement
- new Column("ID", "INT", null, null, false, true, true),
- new Column("ObjectID", "INT", null, null, false),
- new Column("LanguageID", "INT", null, null, false),
- new Column("Value", "LONGTEXT", null, null, false)
- ));
- $tblTenantObjectDescriptions->ForeignKeys = array
- (
- new TableForeignKey("ObjectID", new TableForeignKeyColumn($tblTenantObjects, $tblTenantObjects->GetColumnByName("ID"))),
- new TableForeignKey("LanguageID", new TableForeignKeyColumn($tblLanguages, $tblLanguages->GetColumnByName("ID")))
- );
- $tables[] = $tblTenantObjectDescriptions;
-
- // Available static properties for the objects.
- $tblTenantObjectProperties = new Table("TenantObjectProperties", "property_", array
- (
- // $name, $dataType, $size, $value, $allowNull, $primaryKey, $autoIncrement
- new Column("ID", "INT", null, null, false, true, true),
- new Column("ObjectID", "INT", null, null, false),
- new Column("Name", "VARCHAR", 256, null, true),
- new Column("DataTypeID", "INT", null, null, true),
- new Column("DefaultValue", "LONGBLOB", null, null, true),
- new Column("IsRequired", "INT", null, 0, false),
- new Column("EnumerationID", "INT", null, null, true),
- new Column("RequireChoiceFromEnumeration", "INT", null, 0, false),
- new Column("ColumnVisible", "INT", null, 0, false)
- ));
- $tblTenantObjectProperties->ForeignKeys = array
- (
- new TableForeignKey("ObjectID", new TableForeignKeyColumn($tblTenantObjects, "ID")),
- new TableForeignKey("DataTypeID", new TableForeignKeyColumn($tblDataTypes, "ID"))
- );
- $tables[] = $tblTenantObjectProperties;
-
- // Values for static properties of objects.
- $tblTenantObjectPropertyValues = new Table("TenantObjectPropertyValues", "propval_", array
- (
- // $name, $dataType, $size, $value, $allowNull, $primaryKey, $autoIncrement
- new Column("PropertyID", "INT", null, null, false),
- new Column("Value", "LONGBLOB", null, null, true)
- ));
- $tblTenantObjectPropertyValues->ForeignKeys = array
- (
- new TableForeignKey("PropertyID", new TableForeignKeyColumn($tblTenantObjectProperties, "ID"))
- );
- $tables[] = $tblTenantObjectPropertyValues;
-
- // Instances of the objects.
- $tblTenantObjectInstances = new Table("TenantObjectInstances", "instance_", array
- (
- // $name, $dataType, $size, $value, $allowNull, $primaryKey, $autoIncrement
- new Column("ID", "INT", null, null, false, true, true),
- new Column("ObjectID", "INT", null, null, false)
- ));
- $tblTenantObjectInstances->ForeignKeys = array
- (
- new TableForeignKey("ObjectID", new TableForeignKeyColumn($tblTenantObjects, "ID"))
- );
- $tables[] = $tblTenantObjectInstances;
-
- // Properties of the object instances.
- $tblTenantObjectInstanceProperties = new Table("TenantObjectInstanceProperties", "property_", array
- (
- // $name, $dataType, $size, $value, $allowNull, $primaryKey, $autoIncrement
- new Column("ID", "INT", null, null, false, true, true),
- new Column("ObjectID", "INT", null, null, false),
- new Column("Name", "VARCHAR", 256, null, true),
- new Column("DataTypeID", "INT", null, null, true),
- new Column("DefaultValue", "LONGBLOB", null, null, true),
- new Column("IsRequired", "INT", null, 0, false),
- new Column("EnumerationID", "INT", null, null, true),
- new Column("RequireChoiceFromEnumeration", "INT", null, 0, false),
- new Column("ColumnVisible", "INT", null, 0, false)
- ));
- $tblTenantObjectInstanceProperties->ForeignKeys = array
- (
- new TableForeignKey("ObjectID", new TableForeignKeyColumn($tblTenantObjects, "ID")),
- new TableForeignKey("DataTypeID", new TableForeignKeyColumn($tblDataTypes, "ID"))
- );
- $tables[] = $tblTenantObjectInstanceProperties;
-
- // Values of the object instance properties.
- $tblTenantObjectInstancePropertyValues = new Table("TenantObjectInstancePropertyValues", "propval_", array
- (
- // $name, $dataType, $size, $value, $allowNull, $primaryKey, $autoIncrement
- new Column("InstanceID", "INT", null, null, false),
- new Column("PropertyID", "INT", null, null, false),
- new Column("Value", "LONGBLOB", null, null, false)
- ));
- $tblTenantObjectInstancePropertyValues->PrimaryKey = new TableKey(array
- (
- new TableKeyColumn("InstanceID"),
- new TableKeyColumn("PropertyID")
- ));
- $tblTenantObjectInstancePropertyValues->ForeignKeys = array
- (
- new TableForeignKey("InstanceID", new TableForeignKeyColumn($tblTenantObjectInstances, "ID")),
- new TableForeignKey("PropertyID", new TableForeignKeyColumn($tblTenantObjectInstanceProperties, "ID"))
- );
- $tables[] = $tblTenantObjectInstancePropertyValues;
-
- // Object static methods.
- $tblTenantObjectMethods = new Table("TenantObjectMethods", "method_", array
- (
- // $name, $dataType, $size, $value, $allowNull, $primaryKey, $autoIncrement
- new Column("ID", "INT", null, null, false, true, true),
- new Column("ObjectID", "INT", null, null, false),
- new Column("Name", "VARCHAR", 256, null, false),
- new Column("CodeBlob", "LONGBLOB", null, null, false)
- ));
- $tblTenantObjectMethods->ForeignKeys = array
- (
- new TableForeignKey("ObjectID", new TableForeignKeyColumn($tblTenantObjects, "ID"))
- );
- $tables[] = $tblTenantObjectMethods;
-
- // Object static method namespace references.
- $tblTenantObjectMethodNamespaceReferences = new Table("TenantObjectMethodNamespaceReferences", "ns_", array
- (
- // $name, $dataType, $size, $value, $allowNull, $primaryKey, $autoIncrement
- new Column("ID", "INT", null, null, false, true, true),
- new Column("MethodID", "INT", null, null, false),
- new Column("Value", "VARCHAR", 256, null, false)
- ));
- $tblTenantObjectMethodNamespaceReferences->ForeignKeys = array
- (
- new TableForeignKey("MethodID", new TableForeignKeyColumn($tblTenantObjectMethods, "ID"))
- );
- $tables[] = $tblTenantObjectMethodNamespaceReferences;
-
- // Object instance methods.
- $tblTenantObjectInstanceMethods = new Table("TenantObjectInstanceMethods", "method_", array
- (
- // $name, $dataType, $size, $value, $allowNull, $primaryKey, $autoIncrement
- new Column("ID", "INT", null, null, false, true, true),
- new Column("ObjectID", "INT", null, null, false),
- new Column("Name", "VARCHAR", 256, null, false),
- new Column("CodeBlob", "LONGBLOB", null, null, false)
- ));
- $tables[] = $tblTenantObjectInstanceMethods;
-
- // Object static method namespace references.
- $tblTenantObjectInstanceMethodNamespaceReferences = new Table("TenantObjectInstanceMethodNamespaceReferences", "ns_", array
- (
- // $name, $dataType, $size, $value, $allowNull, $primaryKey, $autoIncrement
- new Column("ID", "INT", null, null, false, true, true),
- new Column("MethodID", "INT", null, null, false),
- new Column("Value", "VARCHAR", 256, null, false)
- ));
- $tables[] = $tblTenantObjectInstanceMethodNamespaceReferences;
-?>
\ No newline at end of file
diff --git a/PHP/Manager/Include/Modules/001-Setup/Tables/DataCenters.inc.php b/PHP/Manager/Include/Modules/001-Setup/Tables/DataCenters.inc.php
deleted file mode 100644
index 1dad40b0..00000000
--- a/PHP/Manager/Include/Modules/001-Setup/Tables/DataCenters.inc.php
+++ /dev/null
@@ -1,26 +0,0 @@
-
\ No newline at end of file
diff --git a/PHP/Manager/Include/Modules/001-Setup/Tables/DebugMessages.inc.php b/PHP/Manager/Include/Modules/001-Setup/Tables/DebugMessages.inc.php
deleted file mode 100644
index 0e633ae6..00000000
--- a/PHP/Manager/Include/Modules/001-Setup/Tables/DebugMessages.inc.php
+++ /dev/null
@@ -1,51 +0,0 @@
-ForeignKeys = array
- (
- new TableForeignKey("MessageID", new TableForeignKeyColumn($tblDebugMessages, "ID"), TableForeignKeyReferenceOption::Cascade)
- );
- $tables[] = $tblDebugMessageBacktraces;
-
- $tblDebugMessageParameters = new Table("DebugMessageParameters", "mp_", array
- (
- // $name, $dataType, $size, $value, $allowNull, $primaryKey, $autoIncrement
- new Column("ID", "INT", null, null, false, true, true),
- new Column("MessageID", "INT", null, null, false),
- new Column("Name", "LONGTEXT", null, null, false),
- new Column("Value", "LONGTEXT", null, null, true)
- ));
- $tblDebugMessageParameters->ForeignKeys = array
- (
- new TableForeignKey("MessageID", new TableForeignKeyColumn($tblDebugMessages, "ID"), TableForeignKeyReferenceOption::Cascade)
- );
- $tables[] = $tblDebugMessageParameters;
-?>
\ No newline at end of file
diff --git a/PHP/Manager/Include/Modules/001-Setup/Tables/Languages.inc.php b/PHP/Manager/Include/Modules/001-Setup/Tables/Languages.inc.php
deleted file mode 100644
index 9f30e6f8..00000000
--- a/PHP/Manager/Include/Modules/001-Setup/Tables/Languages.inc.php
+++ /dev/null
@@ -1,213 +0,0 @@
-Introduce yourself!")
- )),
- new Record(array
- (
- new RecordColumn("LanguageID", 1),
- new RecordColumn("StringName", "invitegroup"),
- new RecordColumn("StringValue", "Invite this user to join a group")
- )),
-
- // === account/settings
- new Record(array
- (
- new RecordColumn("LanguageID", 1),
- new RecordColumn("StringName", "personal"),
- new RecordColumn("StringValue", "Personal Information")
- )),
- new Record(array
- (
- new RecordColumn("LanguageID", 1),
- new RecordColumn("StringName", "realname_label"),
- new RecordColumn("StringValue", "What's your real name?")
- )),
- new Record(array
- (
- new RecordColumn("LanguageID", 1),
- new RecordColumn("StringName", "realname_example"),
- new RecordColumn("StringValue", "Johnny Test")
- )),
- new Record(array
- (
- new RecordColumn("LanguageID", 1),
- new RecordColumn("StringName", "birthdate_label"),
- new RecordColumn("StringValue", "When were you born?")
- )),
- new Record(array
- (
- new RecordColumn("LanguageID", 1),
- new RecordColumn("StringName", "birthdate_example"),
- new RecordColumn("StringValue", "1994-03-25")
- )),
- new Record(array
- (
- new RecordColumn("LanguageID", 1),
- new RecordColumn("StringName", "email_label"),
- new RecordColumn("StringValue", "What's your e-mail address?")
- )),
- new Record(array
- (
- new RecordColumn("LanguageID", 1),
- new RecordColumn("StringName", "email_example"),
- new RecordColumn("StringValue", "somebody@phoenixsns.net")
- )),
- new Record(array
- (
- new RecordColumn("LanguageID", 1),
- new RecordColumn("StringName", "appearance"),
- new RecordColumn("StringValue", "Appearance and Personalization")
- )),
- new Record(array
- (
- new RecordColumn("LanguageID", 1),
- new RecordColumn("StringName", "longname_label"),
- new RecordColumn("StringValue", "What do you want to be called?")
- )),
- new Record(array
- (
- new RecordColumn("LanguageID", 1),
- new RecordColumn("StringName", "longname_example"),
- new RecordColumn("StringValue", "Phenix the Great")
- )),
- new Record(array
- (
- new RecordColumn("LanguageID", 1),
- new RecordColumn("StringName", "startpage_label"),
- new RecordColumn("StringValue", "When I log in, take me to:")
- )),
- new Record(array
- (
- new RecordColumn("LanguageID", 1),
- new RecordColumn("StringName", "shortname_label"),
- new RecordColumn("StringValue", "Your site URL name:")
- )),
- new Record(array
- (
- new RecordColumn("LanguageID", 1),
- new RecordColumn("StringName", "shortname_example"),
- new RecordColumn("StringValue", "phenix")
- )),
- new Record(array
- (
- new RecordColumn("LanguageID", 1),
- new RecordColumn("StringName", "language_label"),
- new RecordColumn("StringValue", "Default language:")
- )),
- new Record(array
- (
- new RecordColumn("LanguageID", 1),
- new RecordColumn("StringName", "security"),
- new RecordColumn("StringValue", "Security and Authentication")
- )),
- new Record(array
- (
- new RecordColumn("LanguageID", 1),
- new RecordColumn("StringName", "profile_visibility_label"),
- new RecordColumn("StringValue", "Who can see my profile?")
- )),
- new Record(array
- (
- new RecordColumn("LanguageID", 1),
- new RecordColumn("StringName", "deactivate_account"),
- new RecordColumn("StringValue", "Deactivate Account")
- )),
- new Record(array
- (
- new RecordColumn("LanguageID", 1),
- new RecordColumn("StringName", "use_with_caution"),
- new RecordColumn("StringValue", "Please exercise great care when considering this option. Once done, it cannot be un-done.")
- )),
- new Record(array
- (
- new RecordColumn("LanguageID", 1),
- new RecordColumn("StringName", "deactivate_account_warning"),
- new RecordColumn("StringValue", "Would you like to deactivate your account and lose all your items, resources, conversation history, friends, group memberships, and other site features? If so, click the link.")
- )),
- new Record(array
- (
- new RecordColumn("LanguageID", 1),
- new RecordColumn("StringName", "deactivate_account_button"),
- new RecordColumn("StringValue", "Yes, please deactivate my account now.")
- ))
- ));
-?>
\ No newline at end of file
diff --git a/PHP/Manager/Include/Modules/001-Setup/Tables/PaymentPlans.inc.php b/PHP/Manager/Include/Modules/001-Setup/Tables/PaymentPlans.inc.php
deleted file mode 100644
index 2f7e356f..00000000
--- a/PHP/Manager/Include/Modules/001-Setup/Tables/PaymentPlans.inc.php
+++ /dev/null
@@ -1,24 +0,0 @@
-
\ No newline at end of file
diff --git a/PHP/Manager/Include/Modules/001-Setup/Tables/SecurityPermissions.inc.php b/PHP/Manager/Include/Modules/001-Setup/Tables/SecurityPermissions.inc.php
deleted file mode 100644
index 9cba3022..00000000
--- a/PHP/Manager/Include/Modules/001-Setup/Tables/SecurityPermissions.inc.php
+++ /dev/null
@@ -1,126 +0,0 @@
-
\ No newline at end of file
diff --git a/PHP/Manager/Include/Modules/001-Setup/Tables/TenantDataCenters.inc.php b/PHP/Manager/Include/Modules/001-Setup/Tables/TenantDataCenters.inc.php
deleted file mode 100644
index 9a920dea..00000000
--- a/PHP/Manager/Include/Modules/001-Setup/Tables/TenantDataCenters.inc.php
+++ /dev/null
@@ -1,23 +0,0 @@
-
\ No newline at end of file
diff --git a/PHP/Manager/Include/Modules/001-Setup/Tables/TenantTypes.inc.php b/PHP/Manager/Include/Modules/001-Setup/Tables/TenantTypes.inc.php
deleted file mode 100644
index edb96f4c..00000000
--- a/PHP/Manager/Include/Modules/001-Setup/Tables/TenantTypes.inc.php
+++ /dev/null
@@ -1,29 +0,0 @@
-
\ No newline at end of file
diff --git a/PHP/Manager/Include/Modules/001-Setup/Tables/Users.inc.php b/PHP/Manager/Include/Modules/001-Setup/Tables/Users.inc.php
deleted file mode 100644
index 683c06e5..00000000
--- a/PHP/Manager/Include/Modules/001-Setup/Tables/Users.inc.php
+++ /dev/null
@@ -1,17 +0,0 @@
-
\ No newline at end of file
diff --git a/PHP/Manager/Include/Modules/001-Setup/TenantObjects/000-Script.inc.php b/PHP/Manager/Include/Modules/001-Setup/TenantObjects/000-Script.inc.php
deleted file mode 100644
index e6c9607a..00000000
--- a/PHP/Manager/Include/Modules/001-Setup/TenantObjects/000-Script.inc.php
+++ /dev/null
@@ -1,125 +0,0 @@
-CreateObject("ScriptLanguage",
- array
- (
- new TenantStringTableEntry($langEnglish, "Script Language")
- ),
- array
- (
- new TenantStringTableEntry($langEnglish, "A programming language used to write scripts.")
- ),
- array
- (
- new TenantObjectInstanceProperty("Name", DataType::GetByName("Text")),
- new TenantObjectInstanceProperty("ContentType", DataType::GetByName("Text"))
- ));
-
- $objClientScriptLanguage = $tenant->CreateObject("ClientScriptLanguage",
- array
- (
- new TenantStringTableEntry($langEnglish, "Client Script Language")
- ),
- array
- (
- new TenantStringTableEntry($langEnglish, "A programming language used to write scripts to be run on the client.")
- ),
- array
- (
- // property name, data type, default value, value required?, enumeration, require choice from enumeration?
- new TenantObjectInstanceProperty("Name", DataType::GetByName("Text")),
- new TenantObjectInstanceProperty("ContentType", DataType::GetByName("Text"))
- ), $objScriptLanguage,
- array
- (
- array
- (
- new TenantObjectInstancePropertyValue("Name", "JavaScript"),
- new TenantObjectInstancePropertyValue("ContentType", "text/javascript")
- ),
- array
- (
- new TenantObjectInstancePropertyValue("Name", "VBScript"),
- new TenantObjectInstancePropertyValue("ContentType", "text/vbscript")
- )
- ));
- $objServerScriptLanguage = $tenant->CreateObject("ServerScriptLanguage",
- array
- (
- new TenantStringTableEntry($langEnglish, "Server Script Language")
- ),
- array
- (
- new TenantStringTableEntry($langEnglish, "A programming language used to write scripts to be run on the server.")
- ),
- array
- (
- // property name, data type, default value, value required?, enumeration, require choice from enumeration?
- new TenantObjectInstanceProperty("Name", DataType::GetByName("Text")),
- new TenantObjectInstanceProperty("ContentType", DataType::GetByName("Text"))
- ), $objScriptLanguage, array
- (
- array
- (
- new TenantObjectInstancePropertyValue("Name", "PHP"),
- new TenantObjectInstancePropertyValue("ContentType", "application/x-php")
- )
- ));
-
- $objScript = $tenant->CreateObject("Script",
- array
- (
- new TenantStringTableEntry($langEnglish, "Script")
- ),
- array
- (
- new TenantStringTableEntry($langEnglish, "A code blob that can be used in various scriptable areas.")
- ),
- array
- (
- // property name, data type, default value, value required?, enumeration, require choice from enumeration?
- new TenantObjectInstanceProperty("Name", DataType::GetByName("Text")),
- new TenantObjectInstanceProperty("Description", DataType::GetByName("Text")),
- new TenantObjectInstanceProperty("Language", DataType::GetByName("SingleInstance"), new SingleInstanceProperty(null, array($objScriptLanguage))),
- new TenantObjectInstanceProperty("Content", DataType::GetByName("CodeBlob"))
- ));
-
- $objClientScript = $tenant->CreateObject("ClientScript",
- array
- (
- new TenantStringTableEntry($langEnglish, "Client Script")
- ),
- array
- (
- new TenantStringTableEntry($langEnglish, "A code blob that can be used in various scriptable areas on the client.")
- ),
- array
- (
- // property name, data type, default value, value required?, enumeration, require choice from enumeration?
- new TenantObjectInstanceProperty("Name", DataType::GetByName("Text")),
- new TenantObjectInstanceProperty("Description", DataType::GetByName("Text")),
- new TenantObjectInstanceProperty("Language", DataType::GetByName("SingleInstance"), new SingleInstanceProperty(null, array($objClientScriptLanguage))),
- new TenantObjectInstanceProperty("Content", DataType::GetByName("CodeBlob"))
- ), $objScript);
-
- $objServerScript = $tenant->CreateObject("ServerScript", "A code blob that can be used in various scriptable areas on the server.", array
- (
- // property name, data type, default value, value required?, enumeration, require choice from enumeration?
- new TenantObjectInstanceProperty("Name", DataType::GetByName("Text")),
- new TenantObjectInstanceProperty("Description", DataType::GetByName("Text")),
- new TenantObjectInstanceProperty("Language", DataType::GetByName("SingleInstance"), new SingleInstanceProperty(null, array($objServerScriptLanguage))),
- new TenantObjectInstanceProperty("Content", DataType::GetByName("CodeBlob"))
- ), $objScript);
-?>
\ No newline at end of file
diff --git a/PHP/Manager/Include/Modules/001-Setup/TenantObjects/000-User.inc.php b/PHP/Manager/Include/Modules/001-Setup/TenantObjects/000-User.inc.php
deleted file mode 100644
index e36b6847..00000000
--- a/PHP/Manager/Include/Modules/001-Setup/TenantObjects/000-User.inc.php
+++ /dev/null
@@ -1,155 +0,0 @@
-CreateEnumeration("UserProfileVisibility", "Specifies the possible values for the ProfileVisibility property on the User object.",
- array
- (
- new TenantEnumerationChoice("Everyone", "Your profile is visible to everyone inside and outside the site."),
- new TenantEnumerationChoice("Sitewide", "Your profile is visible only to other registered users."),
- new TenantEnumerationChoice("FriendsExtended", "Your profile is visible to your friends and friends of your friends."),
- new TenantEnumerationChoice("Friends", "Your profile is visible only to you and your friends."),
- new TenantEnumerationChoice("Private", "Your profile is visible only to you.")
- ));
-
- $enumUserPresenceStatus = $tenant->CreateEnumeration("UserPresenceStatus", "Specifies the possible values for the ProfileVisibility property on the User object.",
- array
- (
- new TenantEnumerationChoice("Offline", "You are not online."),
- new TenantEnumerationChoice("Available", "You are available for other people to chat with."),
- new TenantEnumerationChoice("Away", "You are away from your computer at the moment."),
- new TenantEnumerationChoice("ExtendedAway", "You are going to be away for an extended period of time."),
- new TenantEnumerationChoice("Busy", "You are busy and do not want to be bothered."),
- new TenantEnumerationChoice("Hidden", "Your presence status is hidden.")
- ));
-
- $object = $tenant->CreateObject("User", "Contains information about a Objectify user account.", array
- (
- // property name, data type, default value, value required?, enumeration, require choice from enumeration?
- new TenantObjectInstanceProperty("LoginID"),
- new TenantObjectInstanceProperty("URL"),
- new TenantObjectInstanceProperty("DisplayName"),
- new TenantObjectInstanceProperty("EmailAddress"),
- new TenantObjectInstanceProperty("EmailConfirmationCode"),
- new TenantObjectInstanceProperty("BirthDate"),
- new TenantObjectInstanceProperty("RealName"),
- new TenantObjectInstanceProperty("PasswordHash"),
- new TenantObjectInstanceProperty("PasswordSalt"),
- new TenantObjectInstanceProperty("Theme"),
- new TenantObjectInstanceProperty("Language"),
- new TenantObjectInstanceProperty("ProfileVisibility", null, null, true, $enumUserProfileVisibility, true),
- new TenantObjectInstanceProperty("ConsecutiveLoginCount"),
- new TenantObjectInstanceProperty("ConsecutiveLoginFailures"),
- new TenantObjectInstanceProperty("LastLoginTimestamp"),
- new TenantObjectInstanceProperty("PresenceStatus", null, null, true, $enumUserPresenceStatus, true),
- new TenantObjectInstanceProperty("PresenceMessage"),
- new TenantObjectInstanceProperty("RegistrationTimestamp"),
- new TenantObjectInstanceProperty("RegistrationIPAddress"),
- new TenantObjectInstanceProperty("StartPage")
- ));
-
- $object->CreateMethod("SaltPassword", array(),
-
- // code goes here... you cannot "use" namespaces here; please put them in NamespaceReferences!!!
-<<<'EOD'
-return \UUID::Generate();
-EOD
-, "Generates a Objectify password salt using a Universally Unique Identifier (UUID).");
-
- $object->CreateMethod("HashPassword", array
- (
- new TenantObjectMethodParameter("input")
- ),
-
- // code goes here... you cannot "use" namespaces here; please put them in NamespaceReferences!!!
-<<<'EOD'
-return hash("sha512", $input);
-EOD
-, "Generates a Objectify password hash using the SHA-512 algorithm.");
-
- $object->CreateMethod("ValidateCredentials", array
- (
- new TenantObjectMethodParameter("username"),
- new TenantObjectMethodParameter("password")
- ),
-
- // code goes here... you cannot "use" namespaces here; please put them in NamespaceReferences!!!
-<<<'EOD'
-$tenant = Tenant::GetCurrent();
-$inst = $thisObject->GetInstance(array
-(
- new TenantQueryParameter("LoginID", $username)
-));
-
-// if there is no user with this LoginID, return null
-if ($inst == null) return null;
-
-// get the password salt used in the creation of this instance
-$salt = $inst->GetPropertyValue($thisObject->GetInstanceProperty("PasswordSalt"));
-
-// generate the salted password hash by concatenating the salt and the password
-$pwhash = hash("sha512", $salt . $password);
-
-// try to get an instance with the specified login ID and password hash
-$user = $thisObject->GetInstance(array
-(
- new TenantQueryParameter("LoginID", $username),
- new TenantQueryParameter("PasswordHash", $pwhash)
-));
-
-return $user;
-EOD
-, "Validates the given user name and password against the database and returns an instance of the User if the validation is successful.", array
-(
- 'Objectify\Objects\Tenant',
- 'Objectify\Objects\TenantObjectMethodParameterValue',
- 'Objectify\Objects\TenantQueryParameter'
-));
-
- $object->CreateMethod("GetCurrentUser", array(),
-
- // code goes here... you cannot "use" namespaces here; please put them in NamespaceReferences!!!
-<<<'EOD'
-$tenant = Tenant::GetCurrent();
-if (!((isset($_SESSION["CurrentUserName[" . $tenant->ID . "]"])) && (isset($_SESSION["CurrentPassword[" . $tenant->ID . "]"]))))
-{
- return null;
-}
-
-$username = $_SESSION["CurrentUserName[" . $tenant->ID . "]"];
-$password = $_SESSION["CurrentPassword[" . $tenant->ID . "]"];
-
-$inst = $thisObject->GetInstance(array
-(
- new TenantQueryParameter("LoginID", $username)
-));
-
-// if there is no user with this LoginID, return null
-if ($inst == null) return null;
-
-// get the password salt used in the creation of this instance
-$salt = $inst->GetPropertyValue($thisObject->GetInstanceProperty("PasswordSalt"));
-
-// generate the salted password hash by concatenating the salt and the password
-$pwhash = hash("sha512", $salt . $password);
-
-// try to get an instance with the specified login ID and password hash
-$user = $thisObject->GetInstance(array
-(
- new TenantQueryParameter("LoginID", $username),
- new TenantQueryParameter("PasswordHash", $pwhash)
-));
-
-return $user;
-EOD
-, "Gets the user that is currently logged into Objectify.", array
-(
- // using statements go here
- 'Objectify\Objects\Tenant',
- 'Objectify\Objects\TenantQueryParameter'
-));
-
-?>
\ No newline at end of file
diff --git a/PHP/Manager/Include/Modules/001-Setup/TenantObjects/001-ResourceBundle.inc.php b/PHP/Manager/Include/Modules/001-Setup/TenantObjects/001-ResourceBundle.inc.php
deleted file mode 100644
index 9f7c6dfa..00000000
--- a/PHP/Manager/Include/Modules/001-Setup/TenantObjects/001-ResourceBundle.inc.php
+++ /dev/null
@@ -1,35 +0,0 @@
-CreateObject("ResourceObject", "Represents a single resource object (StyleSheet, Script, etc.) that is loaded in a ResourceBundle on the Objectify tenant.", array
- (
- // property name, data type, default value, value required?, enumeration, require choice from enumeration?
- new TenantObjectInstanceProperty("Name", DataType::GetByName("Text"))
- ));
-
- $objStyleSheet = $tenant->CreateObject("StyleSheet", "Represents a style sheet resource object, containing a set of rules that determine how particular elements appear in a page.", array
- (
- ), $objResourceObject);
-
- $objScriptResourceObject = $tenant->CreateObject("ScriptResourceObject", "Represents a script resource object, containing a single pointer to a ClientScript (executable code that can be run on the client).", array
- (
- new TenantObjectInstanceProperty("ClientScript", DataType::GetByName("SingleInstance"), new SingleInstanceProperty(array(), array($objClientScript)))
- ), $objResourceObject);
-
- $object = $tenant->CreateObject("ResourceBundle", "Contains a bundle of resources (StyleSheets, Scripts, etc.) that are loaded in with the Objectify tenant.", array
- (
- // property name, data type, default value, value required?, enumeration, require choice from enumeration?
- new TenantObjectInstanceProperty("Name", DataType::GetByName("Text")),
- new TenantObjectInstanceProperty("ResourceObjects", DataType::GetByName("MultipleInstance"), new MultipleInstanceProperty(array(), array($objResourceObject)))
- ));
-?>
\ No newline at end of file
diff --git a/PHP/Manager/Include/Modules/001-Setup/TenantObjects/002-Page.inc.php b/PHP/Manager/Include/Modules/001-Setup/TenantObjects/002-Page.inc.php
deleted file mode 100644
index c12265a9..00000000
--- a/PHP/Manager/Include/Modules/001-Setup/TenantObjects/002-Page.inc.php
+++ /dev/null
@@ -1,231 +0,0 @@
-CreateObject("UserAgent", "A User Agent that can determine what browser or client the guest is using to access the Web site.", array
- (
- new TenantObjectInstanceProperty("Name"),
- new TenantObjectInstanceProperty("Value")
- ));
- $objUserAgentBehavior = $tenant->CreateObject("UserAgentBehavior", "The behavior to use when determining whether a list of user agents is allowed (whitelist) or denied (blacklist).", array
- (
- new TenantObjectInstanceProperty("Name")
- ));
-
- $propUserAgents = new TenantObjectInstanceProperty("UserAgents", DataType::GetByName("MultipleInstance"), new MultipleInstanceProperty(array(), array($objUserAgent)));
- $propUserAgents->Description = "If one or more UserAgents are specified in this property, depending on the UserAgentBehavior this PageSection will display ONLY on these UserAgents.";
-
- $propUserAgentBehavior = new TenantObjectInstanceProperty("UserAgentBehavior", DataType::GetByName("SingleInstance"), new SingleInstanceProperty(array(), array($objUserAgentBehavior)));
-
- $objPageSection = $tenant->CreateObject("PageSection", "Represents a section of a Page on the tenant. Sections can be assigned to one or more Pages, and can be duplicated within the same Page.", array
- (
- new TenantObjectInstanceProperty("Name"),
- new TenantObjectInstanceProperty("Content"),
- $propUserAgents,
- $propUserAgentBehavior
- ));
-
- $object = $tenant->CreateObject("Page", "Represents an individual Page on the tenant. Pages have URLs (such as ~/dashboard or ~/account/login) and host one or more PageSections.", array
- (
- // property name, data type, default value, value required?, enumeration, require choice from enumeration?
- new TenantObjectInstanceProperty("Name"),
- new TenantObjectInstanceProperty("URL"),
- new TenantObjectInstanceProperty("Sections", DataType::GetByName("MultipleInstance"), new MultipleInstanceProperty(array(), array($objPageSection)))
- ));
-
- $instSectGuestMainPageDashboardPanel = $objPageSection->CreateInstance(array
- (
- new TenantObjectInstancePropertyValue("Name", "GuestMainPageDashboardPanel"),
- new TenantObjectInstancePropertyValue("Content", <<<'EOD'
-GetObject("GuestMainPageDashboardPost");
- $posts = $objDashboardPost->GetInstances();
-
- if (count($posts) == 0)
- {
-?>
-
-
There's nothing here!
-
- If you are the site administrator, please make sure you have configured your Objectify installation correctly. Log
- in to your Administrator Control Panel to set up your installation and add content.
-