function SalsaAction($pActionId = NULL, $pContentId = NULL) { LibertyMime::LibertyMime(); $this->registerContentType(SALSAACTION_CONTENT_TYPE_GUID, array('content_type_guid' => SALSAACTION_CONTENT_TYPE_GUID, 'content_name' => 'Action', 'handler_class' => 'SalsaAction', 'handler_package' => 'diasalsa', 'handler_file' => 'SalsaAction.php', 'maintainer_url' => 'http://www.tekimaki.com')); $this->mActionId = (int) $pActionId; $this->mContentId = (int) $pContentId; $this->mContentTypeGuid = SALSAACTION_CONTENT_TYPE_GUID; // Permission setup $this->mViewContentPerm = 'p_actions_view'; $this->mCreateContentPerm = 'p_actions_create'; $this->mUpdateContentPerm = 'p_actions_update'; $this->mAdminContentPerm = 'p_actions_admin'; // some basic data we need whether content is valid or not $this->getTargetDesc(); }