Author Topic: What object_types ID should I use  (Read 2227 times)

potion

  • Freshman
  • *
  • Posts: 25
    • View Profile
    • WorkgroupBase
What object_types ID should I use
« on: December 17, 2012, 12:46:37 PM »
I'm developing a (v2.2.x) plugin  and want to implement a new object type (as per table - object_types).

What rules prevent duplicate object_type ID's?

For example, can I request unique object IDs from the Feng Dev team?
Or do I just choose a random ID and hope no one else uses it?
Or should I use my plugin install script to simply use the next available ID?

 ???

Regards
Denis


potion

  • Freshman
  • *
  • Posts: 25
    • View Profile
    • WorkgroupBase
Re: What object_types ID should I use
« Reply #1 on: January 28, 2013, 05:49:59 PM »
Just noticed that in the latest version (2.2.2), plugin manager uses the unique ID assigned by MySQL.  So now the type id does not need to specified in the plugin's info.php file.

Just one thing though.  If a tab is also specified, its related object_type_id there should be some of telling the plugin manager to use the object type ID that has just been created.

I'll post this on Mantis...

 

anything