Older blog entries for mglazer (starting at number 12)

Content types have various options such as an array looped or a singular string entry.

Another is selecting templates, there are defaults as well as custom.

Here is an example of a text content type URI Object in the default (http://dev.4arro w.com/index.xpc.text) and with a custom template (http://dev.4arrow.com/index.xpc.text? with=print_tpl).

21 Jun 2002 (updated 21 Jun 2002 at 07:12 UTC) »

A PHPortal instance top level 'owner' or master user is the first user in the first row of the first user table which was created when the PHPortal instance was itself created as well.

This user id will generally be userid = 1.

Therefore, in the master only control panel we can easily do a check for the top level user to make sure only they are entering.

PHPortal Ownership is based on the first row in the top user table with the id = 1. That user is the top owner and the only one with access to the control panel of that specific PHPortal instance.

At the same time other users can belong to the local access role of 'owner'. This would enable said user, if user had access permissions to the 'takeOwnership' method, to take ownership of a object and its subobjects from another user even another user in the same 'owner' role.

Again, even with all that said only the top level user, which cannot be deleted, can have access to the control panel of the management interace.

21 Jun 2002 (updated 21 Jun 2002 at 07:13 UTC) »

I have also been working on Object Ownership and the userfolder app. In the userfolder app there is an added method named 'store'. This method allows you to identify a unique or shared table that is different that the default used for that specific object instance.

In the user table there are two indices one called PID (parent identifier) the other OID (object identifier). PID signifies parent id. One user may be a child of another user made so by the relational pid. The OID signifies the userfolder Object instance that the user belongs inside. The oid is a relational key from the main objects table id integer of that specific userfolder object instance.

In regards to object ownership there can only be one owner per object which is based on the user who edited or created said Object. a Objects capabilites are limited to the users access permissions. Therefore, if a user cannot addFiles to a folder object he created but then another user who does have those writes edits his folder or takes ownership of the folder then that user would be able to then addFiles to that folder object.

The control panels access can never be overwritten. The master of a PHPortal instance is the user id =1 which also cannot be deleted. The control panel methods cannot change ownership either.

The 'take ownership' (of objects) method is only available to those users who acquire that permission based on the master's settings for his local user roles.

I added two content type transformations to PHPortal today RTF (rich text format) from MSFT and OPML which is from scripting.com. In the RTF notice the properties menu.

NOTE: all content type transformations can use alternative templates as well as sending arrays or other strings besides the defaults.

Global Shared Tables for PHPortal sites, apps, and their relations.

Sites

1 => 4arrow 2 => devsnet

Apps

1 => document 2 => method

Site_Apps

1 => ('1','1') 2 => ('1','2') 3 => ('2','1') 4 => ('2','2')

19 Jun 2002 (updated 19 Jun 2002 at 22:11 UTC) »
XML NameSpaces in PHPortal Object Documents. The optional comments tag in return XPC-TAGS inside of Document Objects in PHPortal are going to be replaced with XML namespaces.
instead of the current comments
<!-- start document index //-->
content....
<!-- finish document index //-->

Now it will be like so <xpc:data type="document" name='index'> content... </xpc:data>

The usefullness in this will be measured in many respects. In the short term, better content handling in regards to content transformations will be vastly improved. Such as this to text...

Two more ToDOs

9. XML DB layer, text DB Layer

10. XMLRPC as layer include all three layers

PHPortal ToDos

1. Removing use of members templates how its done now to the more natural manner.

2. Removing my personal hacks of it so I can publicly release it.

3. Editing all files to move from transitional XPC TAGS

    1. 4arrow.com
    2. dev.4arrow.com
    3. corp.4arrow.com
    4. eservices.4arrow.com
    5. magz.4arrow.com
    6. coding.4arrow.com

4. XML doc app

5. Site's App

6. Owner's of Objects users/docs etc...

7. Central Command for all PHPortal sites access to Owner

8. Graphing Example

I wrote a short entry about PHPortal Object URI properties

Also with links to additional documentation on PHPortal via my other weblog Coding@4Arrow.

3 older entries...

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!