From: <chr...@us...> - 2018-10-22 00:45:38
|
Revision: 13389 http://sourceforge.net/p/xoops/svn/13389 Author: chronolabscoop Date: 2018-10-22 00:45:30 +0000 (Mon, 22 Oct 2018) Log Message: ----------- prealpha - renderments.org - organisational entities! Added Paths: ----------- XoopsModules/entities/ XoopsModules/entities/trunk/ XoopsModules/entities/trunk/modules/ XoopsModules/entities/trunk/modules/entities/ XoopsModules/entities/trunk/modules/entities/admin/ XoopsModules/entities/trunk/modules/entities/assets/ XoopsModules/entities/trunk/modules/entities/assets/css/ XoopsModules/entities/trunk/modules/entities/assets/fonts/ XoopsModules/entities/trunk/modules/entities/assets/icons/ XoopsModules/entities/trunk/modules/entities/assets/images/ XoopsModules/entities/trunk/modules/entities/assets/js/ XoopsModules/entities/trunk/modules/entities/assets/sql/ XoopsModules/entities/trunk/modules/entities/assets/sql/mysql.sql XoopsModules/entities/trunk/modules/entities/blocks/ XoopsModules/entities/trunk/modules/entities/class/ XoopsModules/entities/trunk/modules/entities/class/addresses.php XoopsModules/entities/trunk/modules/entities/class/departments.php XoopsModules/entities/trunk/modules/entities/class/emails.php XoopsModules/entities/trunk/modules/entities/class/facilities.php XoopsModules/entities/trunk/modules/entities/class/queue.php XoopsModules/entities/trunk/modules/entities/class/users.php XoopsModules/entities/trunk/modules/entities/footer.php XoopsModules/entities/trunk/modules/entities/header.php XoopsModules/entities/trunk/modules/entities/include/ XoopsModules/entities/trunk/modules/entities/include/data/ XoopsModules/entities/trunk/modules/entities/include/functions.php XoopsModules/entities/trunk/modules/entities/index.php XoopsModules/entities/trunk/modules/entities/language/ XoopsModules/entities/trunk/modules/entities/language/english/ XoopsModules/entities/trunk/modules/entities/language/english/admin.php XoopsModules/entities/trunk/modules/entities/language/english/forms.php XoopsModules/entities/trunk/modules/entities/language/english/index.html XoopsModules/entities/trunk/modules/entities/language/english/mail_templates/ XoopsModules/entities/trunk/modules/entities/language/english/main.php XoopsModules/entities/trunk/modules/entities/language/english/modinfo.php XoopsModules/entities/trunk/modules/entities/language/english/style.css XoopsModules/entities/trunk/modules/entities/preloads/ XoopsModules/entities/trunk/modules/entities/templates/ XoopsModules/entities/trunk/modules/entities/templates/admin/ XoopsModules/entities/trunk/modules/entities/templates/blocks/ XoopsModules/entities/trunk/modules/entities/templates/pdf/ XoopsModules/entities/trunk/modules/entities/xoops_version.php Added: XoopsModules/entities/trunk/modules/entities/assets/sql/mysql.sql =================================================================== --- XoopsModules/entities/trunk/modules/entities/assets/sql/mysql.sql (rev 0) +++ XoopsModules/entities/trunk/modules/entities/assets/sql/mysql.sql 2018-10-22 00:45:30 UTC (rev 13389) @@ -0,0 +1,242 @@ + +DROP TABLE IF EXISTS `entities_addresses`; + +CREATE TABLE `entities_addresses` ( + `id` mediumint(64) NOT NULL AUTO_INCREMENT, + `street-one` varchar(128) NOT NULL DEFAULT '', + `street-two` varchar(128) NOT NULL DEFAULT '', + `suburb` varchar(128) NOT NULL DEFAULT '', + `city` varchar(128) NOT NULL DEFAULT '', + `province` varchar(128) NOT NULL DEFAULT '', + `countryid` int(11) NOT NULL DEFAULT '0', + `vicinity` varchar(128) NOT NULL DEFAULT '', + `postcode` varchar(24) NOT NULL DEFAULT '', + `longitude` decimal(14,10) NOT NULL DEFAULT '0.0000000000', + `latitude` decimal(14,10) NOT NULL DEFAULT '0.0000000000', + `key` varchar(64) NOT NULL DEFAULT '', + `created` int(13) NOT NULL DEFAULT '0', + PRIMARY KEY (`id`), + KEY `SEARCH` (`suburb`,`province`,`city`,`countryid`,`vicinity`,`postcode`,`latitude`,`longitude`,`key`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +DROP TABLE IF EXISTS `entities_departments`; + +CREATE TABLE `entities_departments` ( + `id` mediumint(24) NOT NULL, + `typal` ENUM('new', 'manager', 'line-manager', 'staffing', 'established', 'merged', 'depreciated', 'hidden') NOT NULL DEFAULT 'new' + `parentid` mediumint(24) NOT NULL DEFAULT '0', + `mergedid` mediumint(24) NOT NULL DEFAULT '0', + `salt` varchar(250) NOT NULL DEFAULT '', + `key` varchar(32) NOT NULL DEFAULT '', + `unixname` varchar(64) NOT NULL DEFAULT '', + `countryid` int(11) NOT NULL DEFAULT '0', + `fullname` varchar(128) NOT NULL DEFAULT '', + `shortname` varchar(64) NOT NULL DEFAULT '', + `tags` varchar(250) NOT NULL DEFAULT '', + `rbn` varchar(32) NOT NULL DEFAULT '', + `rbn-url` TINYTEXT, + `established-year` int(4) NOT NULL DEFAULT '1999', + `established-month` int(2) NOT NULL DEFAULT '12', + `established-day` int(2) NOT NULL DEFAULT '31', + `main-hours` tinytext, + `main-url` tinytext, + `main-email` varchar(196) NOT NULL DEFAULT '', + `main-national-dialcode` varchar(24) NOT NULL DEFAULT '', + `main-international-dialcode` varchar(24) NOT NULL DEFAULT '', + `main-international-dialcode-countryid` int(11) NOT NULL DEFAULT '0', + `support-hours` tinytext, + `support-wiki-url` tinytext, + `support-url` tinytext, + `support-email` varchar(196) NOT NULL DEFAULT '', + `support-national-dialcode` varchar(24) NOT NULL DEFAULT '', + `support-international-dialcode` varchar(24) NOT NULL DEFAULT '', + `support-international-dialcode-countryid` int(11) NOT NULL DEFAULT '0', + `switch-hours` tinytext, + `switch-email` varchar(196) NOT NULL DEFAULT '', + `switch-national-dialcode` varchar(24) NOT NULL DEFAULT '', + `switch-international-dialcode` varchar(24) NOT NULL DEFAULT '', + `switch-international-dialcode-countryid` int(11) NOT NULL DEFAULT '0', + `related-countryids` blob, + `related-departmentsids` blob, + `relating` int(13) NOT NULL DEFAULT '0', + `logo` blob, + `logo-format` enum('SVG','PNG','GIF','JPG','UNKNOWN') NOT NULL DEFAULT 'UNKNOWN', + `ho-countryid` int(11) NOT NULL DEFAULT '0', + `ho-addressid` mediumint(64) NOT NULL DEFAULT '0', + `ho-longitude` decimal(14,10) NOT NULL DEFAULT '0.0000000000', + `ho-latitude` decimal(14,10) NOT NULL DEFAULT '0.0000000000', + `postal-countryid` int(11) NOT NULL DEFAULT '0', + `postal-addressid` mediumint(64) NOT NULL DEFAULT '0', + `facilities-countryids` blob, + `facilityids` blob, + `facilities` int(13) NOT NULL DEFAULT '0', + `creator-uid` int(13) NOT NULL DEFAULT '0', + `creator-hash` varchar(40) NOT NULL DEFAULT '', + `staff-uids` blob, + `staff-hashings` blob, + `zoning-uids` blob, + `zoning-hashings` blob, + `emailing-uids` blob, + `emailing-hashings` blob, + `manager-uids` blob, + `manager-hashings` blob, + `manager-uid` int(13) NOT NULL DEFAULT '0', + `manager-hash` varchar(40) NOT NULL DEFAULT '', + `manager-name` varchar(64) NOT NULL DEFAULT '', + `manager-email` varchar(196) NOT NULL DEFAULT '', + `manager-seal-auth-hash` varchar(40) NOT NULL DEFAULT '', + `repo-coding-type` enum('git-http','svn-http','ftp-user','git-https','svn-https','ftps-user') NOT NULL DEFAULT 'svn-http', + `repo-coding-host` enum('github.com','github.io','sourceforge.net','unknown') NOT NULL DEFAULT 'unknown', + `repo-coding-url` tinytext, + `repo-coding-username` varchar(64) NOT NULL DEFAULT '', + `repo-coding-password` varchar(255) NOT NULL DEFAULT '', + `repo-coding-pathings` blob, + `repo-documents-type` enum('git-http','svn-http','ftp-user','git-https','svn-https','ftps-user') NOT NULL DEFAULT 'svn-http', + `repo-documents-host` enum('github.com','github.io','sourceforge.net','unknown') NOT NULL DEFAULT 'unknown', + `repo-documents-url` tinytext, + `repo-documents-username` varchar(64) NOT NULL DEFAULT '', + `repo-documents-password` varchar(255) NOT NULL DEFAULT '', + `repo-documents-pathings` blob, + `repo-depreciated-type` enum('git-http','svn-http','ftp-user','git-https','svn-https','ftps-user') NOT NULL DEFAULT 'svn-http', + `repo-depreciated-host` enum('github.com','github.io','sourceforge.net','unknown') NOT NULL DEFAULT 'unknown', + `repo-depreciated-url` tinytext, + `repo-depreciated-username` varchar(64) NOT NULL DEFAULT '', + `repo-depreciated-password` varchar(255) NOT NULL DEFAULT '', + `repo-depreciated-pathings` blob, + `repo-media-type` enum('git-http','svn-http','ftp-user','git-https','svn-https','ftps-user') NOT NULL DEFAULT 'svn-http', + `repo-media-host` enum('github.com','github.io','sourceforge.net','unknown') NOT NULL DEFAULT 'unknown', + `repo-media-url` tinytext, + `repo-media-username` varchar(64) NOT NULL DEFAULT '', + `repo-media-password` varchar(255) NOT NULL DEFAULT '', + `repo-media-pathings` blob, + `repo-resources-type` enum('git-http','svn-http','ftp-user','git-https','svn-https','ftps-user') NOT NULL DEFAULT 'svn-http', + `repo-resources-host` enum('github.com','github.io','sourceforge.net','unknown') NOT NULL DEFAULT 'unknown', + `repo-resources-url` tinytext, + `repo-resources-username` varchar(64) NOT NULL DEFAULT '', + `repo-resources-password` varchar(255) NOT NULL DEFAULT '', + `repo-resources-pathings` blob, + `emailed-creator` int(11) NOT NULL DEFAULT '0', + `emailed-staff` int(11) NOT NULL DEFAULT '0', + `emailed-managers` int(11) NOT NULL DEFAULT '0', + `emailed-manager` int(11) NOT NULL DEFAULT '0', + `scanned-coding` int(11) NOT NULL DEFAULT '0', + `scanned-documents` int(11) NOT NULL DEFAULT '0', + `scanned-depreciated` int(11) NOT NULL DEFAULT '0', + `scanned-media` int(11) NOT NULL DEFAULT '0', + `scanned-resources` int(11) NOT NULL DEFAULT '0', + `mapping-coding` int(11) NOT NULL DEFAULT '0', + `mapping-documents` int(11) NOT NULL DEFAULT '0', + `mapping-depreciated` int(11) NOT NULL DEFAULT '0', + `mapping-media` int(11) NOT NULL DEFAULT '0', + `mapping-resources` int(11) NOT NULL DEFAULT '0', + `created` int(11) NOT NULL DEFAULT '0', + `released` int(11) NOT NULL DEFAULT '0', + `updated` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`id`), + KEY `SEARCH` (`unixname`,`countryid`,`fullname`,`shortname`,`established-year`,`established-month`,`established-day`,`ho-countryid`,`ho-addressid`,`ho-longitude`,`ho-latitude`,`postal-countryid`,`postal-addressid`,`creator-uid`,`manager-uid`,`created`), + KEY `CHRONOLOGISTICS` (`emailed-creator`,`emailed-staff`,`emailed-managers`,`emailed-manager`,`scanned-coding`,`scanned-documents`,`scanned-depreciated`,`scanned-media`,`scanned-resources`,`mapping-coding`,`mapping-documents`,`mapping-depreciated`,`mapping-media`,`mapping-resources`,`created`,`released`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +DROP TABLE IF EXISTS `entities_emails`; + +CREATE TABLE `entities_emails` ( + `id` mediumint(250) NOT NULL AUTO_INCREMENT, + `to` blob, + `cc` blob, + `bcc` blob, + `subject` varchar(250) NOT NULL DEFAULT '', + `body` blob, + `attachments` blob, + `created` int(11) NOT NULL DEFAULT '0', + `sending` int(11) NOT NULL DEFAULT '0', + `deleted` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + + +DROP TABLE IF EXISTS `entities_facilities`; + +CREATE TABLE `entities_facilities` ( + `id` mediumint(64) NOT NULL AUTO_INCREMENT, + `departmentid` mediumint(24) NOT NULL DEFAULT '0', + `facilityid` mediumint(64) NOT NULL DEFAULT '0', + `salt` varchar(250) NOT NULL DEFAULT '', + `key` varchar(32) NOT NULL DEFAULT '', + `unixname` varchar(64) NOT NULL DEFAULT '', + `fullname` varchar(128) NOT NULL DEFAULT '', + `shortname` varchar(128) NOT NULL DEFAULT '', + `rbn` varchar(32) NOT NULL DEFAULT '', + `rbn-url` TINYTEXT, + `logo` blob, + `logo-format` enum('SVG','PNG','GIF','JPG','UNKNOWN') NOT NULL DEFAULT 'UNKNOWN', + `hours` tinytext, + `url` tinytext, + `email` varchar(196) NOT NULL DEFAULT '', + `national-dialcode` varchar(24) NOT NULL DEFAULT '', + `international-dialcode` varchar(24) NOT NULL DEFAULT '', + `international-dialcode-countryid` int(11) NOT NULL DEFAULT '0', + `addressid` mediumint(64) NOT NULL DEFAULT '0', + `longitude` decimal(14,10) NOT NULL DEFAULT '0.0000000000', + `latitude` decimal(14,10) NOT NULL DEFAULT '0.0000000000', + `creator-uid` int(13) NOT NULL DEFAULT '0', + `line-manager-uid` int(13) NOT NULL DEFAULT '0', + `line-manager-name` varchar(128) NOT NULL DEFAULT '', + `line-manager-email` varchar(196) NOT NULL DEFAULT '', + `line-manager-hash` varchar(40) NOT NULL DEFAULT '', + `staff-uids` blob, + `staff-hashing` blob, + `staff-queued` int(8) NOT NULL DEFAULT '0', + `staff-signed` int(8) NOT NULL DEFAULT '0', + `release-uid` int(13) NOT NULL DEFAULT '0', + `releaseid` mediumint(250) NOT NULL DEFAULT '0', + `released` int(11) NOT NULL DEFAULT '0', + `releases` int(8) NOT NULL DEFAULT '0', + `emailed-creator` int(11) NOT NULL DEFAULT '0', + `emailed-manager` int(11) NOT NULL DEFAULT '0', + `emailed-staff` int(11) NOT NULL DEFAULT '0', + `emailed-queued` int(11) NOT NULL DEFAULT '0', + `emailed-signed` int(11) NOT NULL DEFAULT '0', + `emailed-release` int(11) NOT NULL DEFAULT '0', + `created` int(11) NOT NULL DEFAULT '0', + `updated` int(11) NOT NULL DEFAULT '0', + `merged` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`id`), + KEY `SEARCH` (`departmentid`,`facilityid`,`unixname`,`fullname`,`shortname`,`addressid`,`longitude`,`latitude`,`creator-uid`,`line-manager-uid`,`updated`,`staff-queued`,`staff-signed`,`release-uid`,`releaseid`), + KEY `CHRONOLOGISTICS` (`released`,`emailed-creator`,`emailed-manager`,`emailed-staff`,`emailed-queued`,`emailed-signed`,`emailed-release`,`created`,`updated`,`merged`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + +DROP TABLE IF EXISTS `entities_queue`; + +CREATE TABLE `entities_queue` ( + `id` mediumint(250) NOT NULL AUTO_INCREMENT, + `typal` enum('MANAGER','LINE-MANAGER','STAFF','OTHER') NOT NULL DEFAULT 'OTHER', + `departmentid` mediumint(24) NOT NULL DEFAULT '0', + `facilityid` mediumint(64) NOT NULL DEFAULT '0', + `hash` varchar(40) NOT NULL DEFAULT '', + `key` varchar(32) NOT NULL DEFAULT '', + `name` varchar(128) NOT NULL DEFAULT '', + `email-department` varchar(196) NOT NULL DEFAULT '', + `email-personal` varchar(196) NOT NULL DEFAULT '', + `uid` int(13) NOT NULL DEFAULT '0', + `emails` int(8) NOT NULL DEFAULT '0', + `emailed` int(11) NOT NULL DEFAULT '0', + `created` int(11) NOT NULL DEFAULT '0', + `signed` int(11) NOT NULL DEFAULT '0', + PRIMARY KEY (`id`), + KEY `SEARCH` (`typal`,`facilityid`,`departmentid`,`hash`,`key`,`name`,`email`,`uid`,`emails`), + KEY `CHRONOLOGISTICS` (`emailed`,`created`,`signed`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + + +DROP TABLE IF EXISTS `entities_users`; + +CREATE TABLE `entities_users` ( + `id` mediumint(250) NOT NULL AUTO_INCREMENT, + `typal` enum('MANAGER','LINE-MANAGER','STAFF','OTHER') NOT NULL DEFAULT 'OTHER', + `departmentid` mediumint(24) NOT NULL DEFAULT '0', + `facilityid` mediumint(64) NOT NULL DEFAULT '0', + `uid` int(13) NOT NULL DEFAULT '0', + PRIMARY KEY (`id`), + KEY `SEARCH` (`typal`,`departmentid`,`facilityid`,`uid`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8; + Added: XoopsModules/entities/trunk/modules/entities/class/addresses.php =================================================================== --- XoopsModules/entities/trunk/modules/entities/class/addresses.php (rev 0) +++ XoopsModules/entities/trunk/modules/entities/class/addresses.php 2018-10-22 00:45:30 UTC (rev 13389) @@ -0,0 +1,82 @@ +<?php +/** + * XOOPS Organisational Entities management module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license General Public License version 3 + * @author Simon Roberts <wis...@us...> + * @subpackage entities + * @description Module for fitting organisations as entities on xoops 2.5 + * @version 1.0.1 + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.5/Modules/entities + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.6/Modules/entities + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/entities + * @link http://internetfounder.wordpress.com + */ + + + + +if (!defined("XOOPS_ROOT_PATH")) { + exit(); +} + +class EntitiesAddresses extends XoopsObject +{ + /** + * Constructor + * + * @param int $id ID of the tag, deprecated + */ + function __construct($id = null) + { + $this->initVar("id", XOBJ_DTYPE_INT, null, false); + $this->initVar("street-one", XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar("street-two", XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar("suburb", XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar("city", XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar("province", XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar("countryid", XOBJ_DTYPE_INT, null, false); + $this->initVar("vicinity", XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar("postcode", XOBJ_DTYPE_TXTBOX, null, false, 24); + $this->initVar("longitude", XOBJ_DTYPE_FLOAT, null, false); + $this->initVar("latitude", XOBJ_DTYPE_FLOAT, null, false); + $this->initVar("key", XOBJ_DTYPE_TXTBOX, null, false, 64); + $this->initVar("created", XOBJ_DTYPE_INT, null, false); + } + +} + +/** + * Tag object handler class. + * + * @author Taiwen Jiang <ph...@us...> + * @copyright copyright © The XOOPS Project + * + * {@link XoopsPersistableObjectHandler} + * + */ + +class EntitiesAddressesHandler extends XoopsPersistableObjectHandler +{ + + + /** + * Constructor + * + * @param object $db reference to the {@link XoopsDatabase} object + **/ + function __construct(&$db) + { + parent::__construct($db, "entities_addresses", "EntitiesAddresses", "id", "vicinity"); + } + +} +?> \ No newline at end of file Property changes on: XoopsModules/entities/trunk/modules/entities/class/addresses.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/entities/trunk/modules/entities/class/departments.php =================================================================== --- XoopsModules/entities/trunk/modules/entities/class/departments.php (rev 0) +++ XoopsModules/entities/trunk/modules/entities/class/departments.php 2018-10-22 00:45:30 UTC (rev 13389) @@ -0,0 +1,180 @@ +<?php +/** + * XOOPS Organisational Entities management module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license General Public License version 3 + * @author Simon Roberts <wis...@us...> + * @subpackage entities + * @description Module for fitting organisations as entities on xoops 2.5 + * @version 1.0.1 + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.5/Modules/entities + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.6/Modules/entities + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/entities + * @link http://internetfounder.wordpress.com + */ + + + + +if (!defined("XOOPS_ROOT_PATH")) { + exit(); +} + +class EntitiesDepartments extends XoopsObject +{ + /** + * Constructor + * + * @param int $id ID of the tag, deprecated + */ + function __construct($id = null) + { + $this->initVar("id", XOBJ_DTYPE_INT, null, false); + $this->initVar("typal", XOBJ_DTYPE_ENUM, null, false, false, false, array('new', 'manager', 'line-manager', 'staffing', 'established', 'merged', 'depreciated', 'hidden')); + $this->initVar("parentid", XOBJ_DTYPE_INT, null, false); + $this->initVar("mergedid", XOBJ_DTYPE_INT, null, false); + $this->initVar("salt", XOBJ_DTYPE_TXTBOX, null, false, 250); + $this->initVar("key", XOBJ_DTYPE_TXTBOX, null, false, 32); + $this->initVar("unixname", XOBJ_DTYPE_TXTBOX, null, false, 64); + $this->initVar("countryid", XOBJ_DTYPE_INT, null, false); + $this->initVar("fullname", XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar("shortname", XOBJ_DTYPE_TXTBOX, null, false, 64); + $this->initVar("tags", XOBJ_DTYPE_TXTBOX, null, false, 250); + $this->initVar("rbn", XOBJ_DTYPE_TXTBOX, null, false, 32); + $this->initVar("rbn-url", XOBJ_DTYPE_OTHER, null, false); + $this->initVar("established-year", XOBJ_DTYPE_INT, null, false); + $this->initVar("established-month", XOBJ_DTYPE_INT, null, false); + $this->initVar("established-day", XOBJ_DTYPE_INT, null, false); + $this->initVar("main-hours", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("main-url", XOBJ_DTYPE_OTHER, null, false); + $this->initVar("main-email", XOBJ_DTYPE_TXTBOX, null, false, 196); + $this->initVar("main-national-dialcode", XOBJ_DTYPE_TXTBOX, null, false, 24); + $this->initVar("main-international-dialcode", XOBJ_DTYPE_TXTBOX, null, false, 24); + $this->initVar("main-international-dialcode-countryid", XOBJ_DTYPE_INT, null, false); + $this->initVar("support-hours", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("support-url", XOBJ_DTYPE_OTHER, null, false); + $this->initVar("support-wiki-url", XOBJ_DTYPE_OTHER, null, false); + $this->initVar("support-email", XOBJ_DTYPE_TXTBOX, null, false, 196); + $this->initVar("support-national-dialcode", XOBJ_DTYPE_TXTBOX, null, false, 24); + $this->initVar("support-international-dialcode", XOBJ_DTYPE_TXTBOX, null, false, 24); + $this->initVar("support-international-dialcode-countryid", XOBJ_DTYPE_INT, null, false); + $this->initVar("switch-hours", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("switch-email", XOBJ_DTYPE_TXTBOX, null, false, 196); + $this->initVar("switch-national-dialcode", XOBJ_DTYPE_TXTBOX, null, false, 24); + $this->initVar("switch-international-dialcode", XOBJ_DTYPE_TXTBOX, null, false, 24); + $this->initVar("switch-international-dialcode-countryid", XOBJ_DTYPE_INT, null, false); + $this->initVar("related-countryids", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("related-departmentsids", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("relating", XOBJ_DTYPE_INT, null, false); + $this->initVar("logo", XOBJ_DTYPE_OTHER, null, false); + $this->initVar("logo-format", XOBJ_DTYPE_ENUM, null, false, false, false, array('SVG','PNG','GIF','JPG','UNKNOWN')); + $this->initVar("ho-countryid", XOBJ_DTYPE_INT, null, false); + $this->initVar("ho-addressid", XOBJ_DTYPE_INT, null, false); + $this->initVar("ho-longitude", XOBJ_DTYPE_FLOAT, null, false); + $this->initVar("ho-latitude", XOBJ_DTYPE_FLOAT, null, false); + $this->initVar("postal-countryid", XOBJ_DTYPE_INT, null, false); + $this->initVar("postal-addressid", XOBJ_DTYPE_INT, null, false); + $this->initVar("facilities-countryids", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("facilityids", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("facilities", XOBJ_DTYPE_INT, null, false); + $this->initVar("creator-uid", XOBJ_DTYPE_INT, null, false); + $this->initVar("creator-hash", XOBJ_DTYPE_TXTBOX, null, false, 40); + $this->initVar("staff-uids", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("staff-hashings", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("zoning-uids", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("zoning-hashings", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("emailing-uids", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("emailing-hashings", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("manager-uids", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("manager-hashings", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("manager-uid", XOBJ_DTYPE_INT, null, false); + $this->initVar("manager-hash", XOBJ_DTYPE_TXTBOX, null, false, 40); + $this->initVar("manager-name", XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar("manager-email", XOBJ_DTYPE_TXTBOX, null, false, 196); + $this->initVar("manager-seal-auth-hash", XOBJ_DTYPE_TXTBOX, null, false, 40); + $this->initVar("repo-coding-type", XOBJ_DTYPE_ENUM, null, false, false, false, array('git-http','svn-http','ftp-user','git-https','svn-https','ftps-user')); + $this->initVar("repo-coding-host", XOBJ_DTYPE_ENUM, null, false, false, false, array('github.com','github.io','sourceforge.net','unknown')); + $this->initVar("repo-coding-url", XOBJ_DTYPE_OTHER, null, false); + $this->initVar("repo-coding-username", XOBJ_DTYPE_TXTBOX, null, false, 64); + $this->initVar("repo-coding-password", XOBJ_DTYPE_TXTBOX, null, false, 255); + $this->initVar("repo-coding-pathings", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("repo-documents-type", XOBJ_DTYPE_ENUM, null, false, false, false, array('git-http','svn-http','ftp-user','git-https','svn-https','ftps-user')); + $this->initVar("repo-documents-host", XOBJ_DTYPE_ENUM, null, false, false, false, array('github.com','github.io','sourceforge.net','unknown')); + $this->initVar("repo-documents-url", XOBJ_DTYPE_OTHER, null, false); + $this->initVar("repo-documents-username", XOBJ_DTYPE_TXTBOX, null, false, 64); + $this->initVar("repo-documents-password", XOBJ_DTYPE_TXTBOX, null, false, 255); + $this->initVar("repo-documents-pathings", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("repo-depreciated-type", XOBJ_DTYPE_ENUM, null, false, false, false, array('git-http','svn-http','ftp-user','git-https','svn-https','ftps-user')); + $this->initVar("repo-depreciated-host", XOBJ_DTYPE_ENUM, null, false, false, false, array('github.com','github.io','sourceforge.net','unknown')); + $this->initVar("repo-depreciated-url", XOBJ_DTYPE_OTHER, null, false); + $this->initVar("repo-depreciated-username", XOBJ_DTYPE_TXTBOX, null, false, 64); + $this->initVar("repo-depreciated-password", XOBJ_DTYPE_TXTBOX, null, false, 255); + $this->initVar("repo-depreciated-pathings", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("repo-media-type", XOBJ_DTYPE_ENUM, null, false, false, false, array('git-http','svn-http','ftp-user','git-https','svn-https','ftps-user')); + $this->initVar("repo-media-host", XOBJ_DTYPE_ENUM, null, false, false, false, array('github.com','github.io','sourceforge.net','unknown')); + $this->initVar("repo-media-url", XOBJ_DTYPE_OTHER, null, false); + $this->initVar("repo-media-username", XOBJ_DTYPE_TXTBOX, null, false, 64); + $this->initVar("repo-media-password", XOBJ_DTYPE_TXTBOX, null, false, 255); + $this->initVar("repo-media-pathings", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("repo-resources-type", XOBJ_DTYPE_ENUM, null, false, false, false, array('git-http','svn-http','ftp-user','git-https','svn-https','ftps-user')); + $this->initVar("repo-resources-host", XOBJ_DTYPE_ENUM, null, false, false, false, array('github.com','github.io','sourceforge.net','unknown')); + $this->initVar("repo-resources-url", XOBJ_DTYPE_OTHER, null, false); + $this->initVar("repo-resources-username", XOBJ_DTYPE_TXTBOX, null, false, 64); + $this->initVar("repo-resources-password", XOBJ_DTYPE_TXTBOX, null, false, 255); + $this->initVar("repo-resources-pathings", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("emailed-creator", XOBJ_DTYPE_INT, null, false); + $this->initVar("emailed-staff", XOBJ_DTYPE_INT, null, false); + $this->initVar("emailed-managers", XOBJ_DTYPE_INT, null, false); + $this->initVar("emailed-manager", XOBJ_DTYPE_INT, null, false); + $this->initVar("scanned-coding", XOBJ_DTYPE_INT, null, false); + $this->initVar("scanned-documents", XOBJ_DTYPE_INT, null, false); + $this->initVar("scanned-depreciated", XOBJ_DTYPE_INT, null, false); + $this->initVar("scanned-media", XOBJ_DTYPE_INT, null, false); + $this->initVar("scanned-resources", XOBJ_DTYPE_INT, null, false); + $this->initVar("mapping-coding", XOBJ_DTYPE_INT, null, false); + $this->initVar("mapping-documents", XOBJ_DTYPE_INT, null, false); + $this->initVar("mapping-depreciated", XOBJ_DTYPE_INT, null, false); + $this->initVar("mapping-media", XOBJ_DTYPE_INT, null, false); + $this->initVar("mapping-resources", XOBJ_DTYPE_INT, null, false); + $this->initVar("created", XOBJ_DTYPE_INT, null, false); + $this->initVar("released", XOBJ_DTYPE_INT, null, false); + $this->initVar("updated", XOBJ_DTYPE_INT, null, false); + + } + +} + +/** + * Tag object handler class. + * + * @author Taiwen Jiang <ph...@us...> + * @copyright copyright © The XOOPS Project + * + * {@link XoopsPersistableObjectHandler} + * + */ + +class EntitiesDepartmentsHandler extends XoopsPersistableObjectHandler +{ + + + /** + * Constructor + * + * @param object $db reference to the {@link XoopsDatabase} object + **/ + function __construct(&$db) + { + parent::__construct($db, "entities_departments", "EntitiesDepartments", "id", "fullname"); + } + +} +?> \ No newline at end of file Property changes on: XoopsModules/entities/trunk/modules/entities/class/departments.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/entities/trunk/modules/entities/class/emails.php =================================================================== --- XoopsModules/entities/trunk/modules/entities/class/emails.php (rev 0) +++ XoopsModules/entities/trunk/modules/entities/class/emails.php 2018-10-22 00:45:30 UTC (rev 13389) @@ -0,0 +1,79 @@ +<?php +/** + * XOOPS Organisational Entities management module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license General Public License version 3 + * @author Simon Roberts <wis...@us...> + * @subpackage entities + * @description Module for fitting organisations as entities on xoops 2.5 + * @version 1.0.1 + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.5/Modules/entities + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.6/Modules/entities + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/entities + * @link http://internetfounder.wordpress.com + */ + + + + +if (!defined("XOOPS_ROOT_PATH")) { + exit(); +} + +class EntitiesEmails extends XoopsObject +{ + /** + * Constructor + * + * @param int $id ID of the tag, deprecated + */ + function __construct($id = null) + { + $this->initVar("id", XOBJ_DTYPE_INT, null, false); + $this->initVar("to", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("cc", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("bcc", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("subject", XOBJ_DTYPE_TXTBOX, null, false, 250); + $this->initVar("body", XOBJ_DTYPE_OTHER, null, false); + $this->initVar("attachments", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("created", XOBJ_DTYPE_INT, null, false); + $this->initVar("sending", XOBJ_DTYPE_INT, null, false); + $this->initVar("deleted", XOBJ_DTYPE_INT, null, false); + } + +} + +/** + * Tag object handler class. + * + * @author Taiwen Jiang <ph...@us...> + * @copyright copyright © The XOOPS Project + * + * {@link XoopsPersistableObjectHandler} + * + */ + +class EntitiesEmailsHandler extends XoopsPersistableObjectHandler +{ + + + /** + * Constructor + * + * @param object $db reference to the {@link XoopsDatabase} object + **/ + function __construct(&$db) + { + parent::__construct($db, "entities_emails", "EntitiesEmails", "id", "subject"); + } + +} +?> \ No newline at end of file Property changes on: XoopsModules/entities/trunk/modules/entities/class/emails.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/entities/trunk/modules/entities/class/facilities.php =================================================================== --- XoopsModules/entities/trunk/modules/entities/class/facilities.php (rev 0) +++ XoopsModules/entities/trunk/modules/entities/class/facilities.php 2018-10-22 00:45:30 UTC (rev 13389) @@ -0,0 +1,111 @@ +<?php +/** + * XOOPS Organisational Entities management module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license General Public License version 3 + * @author Simon Roberts <wis...@us...> + * @subpackage entities + * @description Module for fitting organisations as entities on xoops 2.5 + * @version 1.0.1 + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.5/Modules/entities + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.6/Modules/entities + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/entities + * @link http://internetfounder.wordpress.com + */ + + + + +if (!defined("XOOPS_ROOT_PATH")) { + exit(); +} + +class EntitiesFacilities extends XoopsObject +{ + /** + * Constructor + * + * @param int $id ID of the tag, deprecated + */ + function __construct($id = null) + { + $this->initVar("id", XOBJ_DTYPE_INT, null, false); + $this->initVar("departmentid", XOBJ_DTYPE_INT, null, false); + $this->initVar("facilityid", XOBJ_DTYPE_INT, null, false); + $this->initVar("salt", XOBJ_DTYPE_TXTBOX, null, false, 250); + $this->initVar("key", XOBJ_DTYPE_TXTBOX, null, false, 32); + $this->initVar("unixname", XOBJ_DTYPE_TXTBOX, null, false, 64); + $this->initVar("fullname", XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar("shortname", XOBJ_DTYPE_TXTBOX, null, false, 64); + $this->initVar("rbn", XOBJ_DTYPE_TXTBOX, null, false, 32); + $this->initVar("rbn-url", XOBJ_DTYPE_OTHER, null, false); + $this->initVar("hours", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("url", XOBJ_DTYPE_OTHER, null, false); + $this->initVar("email", XOBJ_DTYPE_TXTBOX, null, false, 196); + $this->initVar("national-dialcode", XOBJ_DTYPE_TXTBOX, null, false, 24); + $this->initVar("international-dialcode", XOBJ_DTYPE_TXTBOX, null, false, 24); + $this->initVar("international-dialcode-countryid", XOBJ_DTYPE_INT, null, false); + $this->initVar("addressid", XOBJ_DTYPE_INT, null, false); + $this->initVar("longitude", XOBJ_DTYPE_FLOAT, null, false); + $this->initVar("latitude", XOBJ_DTYPE_FLOAT, null, false); + $this->initVar("creator-uid", XOBJ_DTYPE_INT, null, false); + $this->initVar("line-manager-uid", XOBJ_DTYPE_INT, null, false); + $this->initVar("line-manager-hash", XOBJ_DTYPE_TXTBOX, null, false, 40); + $this->initVar("line-manager-name", XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar("line-manager-email", XOBJ_DTYPE_TXTBOX, null, false, 196); + $this->initVar("staff-uids", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("staff-hashings", XOBJ_DTYPE_ARRAY, array(), false); + $this->initVar("staff-queued", XOBJ_DTYPE_INT, null, false); + $this->initVar("staff-signed", XOBJ_DTYPE_INT, null, false); + $this->initVar("release-uid", XOBJ_DTYPE_INT, null, false); + $this->initVar("releaseid", XOBJ_DTYPE_INT, null, false); + $this->initVar("released", XOBJ_DTYPE_INT, null, false); + $this->initVar("releases", XOBJ_DTYPE_INT, null, false); + $this->initVar("emailed-creator", XOBJ_DTYPE_INT, null, false); + $this->initVar("emailed-manager", XOBJ_DTYPE_INT, null, false); + $this->initVar("emailed-staff", XOBJ_DTYPE_INT, null, false); + $this->initVar("emailed-queued", XOBJ_DTYPE_INT, null, false); + $this->initVar("emailed-signed", XOBJ_DTYPE_INT, null, false); + $this->initVar("emailed-release", XOBJ_DTYPE_INT, null, false); + $this->initVar("created", XOBJ_DTYPE_INT, null, false); + $this->initVar("updated", XOBJ_DTYPE_INT, null, false); + $this->initVar("merged", XOBJ_DTYPE_INT, null, false); + + } + +} + +/** + * Tag object handler class. + * + * @author Taiwen Jiang <ph...@us...> + * @copyright copyright © The XOOPS Project + * + * {@link XoopsPersistableObjectHandler} + * + */ + +class EntitiesFacilitiesHandler extends XoopsPersistableObjectHandler +{ + + + /** + * Constructor + * + * @param object $db reference to the {@link XoopsDatabase} object + **/ + function __construct(&$db) + { + parent::__construct($db, "entities_facilities", "EntitiesFacilities", "id", "vincitity"); + } + +} +?> \ No newline at end of file Property changes on: XoopsModules/entities/trunk/modules/entities/class/facilities.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/entities/trunk/modules/entities/class/queue.php =================================================================== --- XoopsModules/entities/trunk/modules/entities/class/queue.php (rev 0) +++ XoopsModules/entities/trunk/modules/entities/class/queue.php 2018-10-22 00:45:30 UTC (rev 13389) @@ -0,0 +1,84 @@ +<?php +/** + * XOOPS Organisational Entities management module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license General Public License version 3 + * @author Simon Roberts <wis...@us...> + * @subpackage entities + * @description Module for fitting organisations as entities on xoops 2.5 + * @version 1.0.1 + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.5/Modules/entities + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.6/Modules/entities + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/entities + * @link http://internetfounder.wordpress.com + */ + + + + +if (!defined("XOOPS_ROOT_PATH")) { + exit(); +} + +class EntitiesQueue extends XoopsObject +{ + /** + * Constructor + * + * @param int $id ID of the tag, deprecated + */ + function __construct($id = null) + { + $this->initVar("id", XOBJ_DTYPE_INT, null, false); + $this->initVar("typal", XOBJ_DTYPE_ENUM, null, false, false, false, array('MANAGER','LINE-MANAGER','STAFF','OTHER')); + $this->initVar("departmentid", XOBJ_DTYPE_INT, null, false); + $this->initVar("facilityid", XOBJ_DTYPE_INT, null, false); + $this->initVar("hash", XOBJ_DTYPE_TXTBOX, null, false, 40); + $this->initVar("key", XOBJ_DTYPE_TXTBOX, null, false, 32); + $this->initVar("name", XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar("email-department", XOBJ_DTYPE_TXTBOX, null, false, 196); + $this->initVar("email-personal", XOBJ_DTYPE_TXTBOX, null, false, 196); + $this->initVar("uid", XOBJ_DTYPE_INT, null, false); + $this->initVar("emails", XOBJ_DTYPE_INT, null, false); + $this->initVar("emailed", XOBJ_DTYPE_INT, null, false); + $this->initVar("created", XOBJ_DTYPE_INT, null, false); + $this->initVar("signed", XOBJ_DTYPE_INT, null, false); + + } + +} + +/** + * Tag object handler class. + * + * @author Taiwen Jiang <ph...@us...> + * @copyright copyright © The XOOPS Project + * + * {@link XoopsPersistableObjectHandler} + * + */ + +class EntitiesQueueHandler extends XoopsPersistableObjectHandler +{ + + + /** + * Constructor + * + * @param object $db reference to the {@link XoopsDatabase} object + **/ + function __construct(&$db) + { + parent::__construct($db, "entities_queue", "EntitiesQueue", "id", "vincitity"); + } + +} +?> \ No newline at end of file Property changes on: XoopsModules/entities/trunk/modules/entities/class/queue.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/entities/trunk/modules/entities/class/users.php =================================================================== --- XoopsModules/entities/trunk/modules/entities/class/users.php (rev 0) +++ XoopsModules/entities/trunk/modules/entities/class/users.php 2018-10-22 00:45:30 UTC (rev 13389) @@ -0,0 +1,74 @@ +<?php +/** + * XOOPS Organisational Entities management module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license General Public License version 3 + * @author Simon Roberts <wis...@us...> + * @subpackage entities + * @description Module for fitting organisations as entities on xoops 2.5 + * @version 1.0.1 + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.5/Modules/entities + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.6/Modules/entities + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/entities + * @link http://internetfounder.wordpress.com + */ + + + + +if (!defined("XOOPS_ROOT_PATH")) { + exit(); +} + +class EntitiesUsers extends XoopsObject +{ + /** + * Constructor + * + * @param int $id ID of the tag, deprecated + */ + function __construct($id = null) + { + $this->initVar("id", XOBJ_DTYPE_INT, null, false); + $this->initVar("typal", XOBJ_DTYPE_ENUM, null, false, false, false, array('MANAGER','LINE-MANAGER','STAFF','OTHER')); + $this->initVar("departmentid", XOBJ_DTYPE_INT, null, false); + $this->initVar("facilityid", XOBJ_DTYPE_INT, null, false); + $this->initVar("uid", XOBJ_DTYPE_INT, null, false); + } + +} + +/** + * Tag object handler class. + * + * @author Taiwen Jiang <ph...@us...> + * @copyright copyright © The XOOPS Project + * + * {@link XoopsPersistableObjectHandler} + * + */ + +class EntitiesUsersHandler extends XoopsPersistableObjectHandler +{ + + + /** + * Constructor + * + * @param object $db reference to the {@link XoopsDatabase} object + **/ + function __construct(&$db) + { + parent::__construct($db, "entities_users", "EntitiesUsers", "id", "uid"); + } + +} +?> \ No newline at end of file Property changes on: XoopsModules/entities/trunk/modules/entities/class/users.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/entities/trunk/modules/entities/footer.php =================================================================== --- XoopsModules/entities/trunk/modules/entities/footer.php (rev 0) +++ XoopsModules/entities/trunk/modules/entities/footer.php 2018-10-22 00:45:30 UTC (rev 13389) @@ -0,0 +1,28 @@ +<?php +/** + * XOOPS Organisational Entities management module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license General Public License version 3 + * @author Simon Roberts <wis...@us...> + * @subpackage entities + * @description Module for fitting organisations as entities on xoops 2.5 + * @version 1.0.1 + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.5/Modules/entities + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.6/Modules/entities + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/entities + * @link http://internetfounder.wordpress.com + */ + + + + +include_once XOOPS_ROOT_PATH . "/footer.php"; +?> \ No newline at end of file Property changes on: XoopsModules/entities/trunk/modules/entities/footer.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/entities/trunk/modules/entities/header.php =================================================================== --- XoopsModules/entities/trunk/modules/entities/header.php (rev 0) +++ XoopsModules/entities/trunk/modules/entities/header.php 2018-10-22 00:45:30 UTC (rev 13389) @@ -0,0 +1,79 @@ +<?php +/** + * XOOPS Organisational Entities management module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license General Public License version 3 + * @author Simon Roberts <wis...@us...> + * @subpackage entities + * @description Module for fitting organisations as entities on xoops 2.5 + * @version 1.0.1 + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.5/Modules/entities + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.6/Modules/entities + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/entities + * @link http://internetfounder.wordpress.com + */ + + + + +require_once dirname(dirname(__DIR__)) . DIRECTORY_SEPARATOR . 'mainfile.php'; + +require_once __DIR__ . "/include/functions.php"; + + +$myts =& MyTextSanitizer::getInstance(); + +global $entitiesModule, $entitiesConfigsList, $entitiesConfigs, $entitiesConfigsOptions; + +if (empty($entitiesModule)) +{ + if (is_a($entitiesModule = xoops_getHandler('module')->getByDirname(basename(__DIR__)), "XoopsModule")) + { + if (empty($entitiesConfigsList)) + { + $entitiesConfigsList = countries_load_config(); + } + if (empty($entitiesConfigs)) + { + $entitiesConfigs = xoops_getHandler('config')->getConfigs(new Criteria('conf_modid', $entitiesModule->getVar('mid'))); + } + if (empty($entitiesConfigsOptions) && !empty($entitiesConfigs)) + { + foreach($entitiesConfigs as $key => $config) + $entitiesConfigsOptions[$config->getVar('conf_name')] = $config->getConfOptions(); + } + } +} + +global $xoopsConfig, $xoopsUser; +if (!defined('XOOPS_DOMAIN_COUNTRYID')) +foreach(explode('|', $entitiesConfigsList['domains']) as $domain) { + if (strtolower(substr(parse_url(XOOPS_URL, PHP_URL_HOST), strlen(parse_url(XOOPS_URL, PHP_URL_HOST)) - strlen($domain))) == strtolower($domain)) { + $parttld = str_replace('.'.$domain, '', parse_url(XOOPS_URL, PHP_URL_HOST)); + $parts = array_reverse(explode('.', $parttld)); + if (isset($parts[0]) && strlen($parts[0]) == 2) { + foreach(xoops_getModuleHandler('countries', basename(__DIR__))->getObjects(new Criteria('`tld`', "%".$parts[0]."%", 'LIKE')) as $country) { + if (!defined('XOOPS_DOMAIN_COUNTRYID') && isset($country) && !empty($country)) + define("XOOPS_DOMAIN_COUNTRYID", $country->getVar('countryid')); + if (count($parts) == 1) + $xoopsConfig['startpage'] = basename(dirname(__DIR__)); + + } + } + } +} + +global $start, $limit, $op; + +$op = empty($_REQUEST["op"]) || !in_array($_REQUEST['op'], array('default', 'save', 'delete', 'deleteconfirm')) ? 'default' : $_REQUEST["op"] ; +$start = intval( empty($_REQUEST["start"]) ? 0 : $_REQUEST["start"] ); +$limit = intval( empty($_REQUEST["limit"]) ? $entitiesConfigsList['items_perpage']: $_REQUEST["limit"] ); + Property changes on: XoopsModules/entities/trunk/modules/entities/header.php ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property Added: XoopsModules/entities/trunk/modules/entities/include/functions.php =================================================================== --- XoopsModules/entities/trunk/modules/entities/include/functions.php (rev 0) +++ XoopsModules/entities/trunk/modules/entities/include/functions.php 2018-10-22 00:45:30 UTC (rev 13389) @@ -0,0 +1,22 @@ +<?php +/** + * XOOPS Organisational Entities management module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license General Public License version 3 + * @author Simon Roberts <wis...@us...> + * @subpackage entities + * @description Module for fitting organisations as entities on xoops 2.5 + * @version 1.0.1 + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.5/Modules/entities + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.6/Modules/entities + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/entities + * @link http://internetfounder.wordpress.com + */ Added: XoopsModules/entities/trunk/modules/entities/index.php =================================================================== --- XoopsModules/entities/trunk/modules/entities/index.php (rev 0) +++ XoopsModules/entities/trunk/modules/entities/index.php 2018-10-22 00:45:30 UTC (rev 13389) @@ -0,0 +1,71 @@ +<?php +/** + * XOOPS Organisational Entities management module + * + * You may not change or alter any portion of this comment or credits + * of supporting developers from this source code or any supporting source code + * which is considered copyrighted (c) material of the original comment or credit authors. + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license General Public License version 3 + * @author Simon Roberts <wis...@us...> + * @subpackage entities + * @description Module for fitting organisations as entities on xoops 2.5 + * @version 1.0.1 + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.5/Modules/entities + * @link https://sourceforge.net/p/chronolabs-cooperative/files/XOOPS%202.6/Modules/entities + * @link https://sourceforge.net/p/xoops/svn/HEAD/tree/XoopsModules/entities + * @link http://internetfounder.wordpress.com + */ + + + + +global $countriesModule, $countriesConfigsList, $countriesConfigs, $countriesConfigsOptions; +global $start, $limit; + +include dirname(__FILE__) . "/header.php"; + +if ($countriesConfigsList['htaccess']) +{ + $url = XOOPS_URL . "/" . $countriesConfigsList['base'] . "/$start/$limit/index" . $countriesConfigsList['html']; + if (!strpos($url, $_SERVER["REQUEST_URI"])) + { + redirect_header($url, 0, ""); + exit(0); + } +} + +include XOOPS_ROOT_PATH . "/header.php"; +// Adds Stylesheet +if (is_file(XOOPS_ROOT_PATH . "/modules/" . basename(__DIR__) . "/language/" . $GLOBALS['xoopsConfig']['language'] . '/style.css')) + $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL . "/modules/" . basename(__DIR__) . "/language/" . $GLOBALS['xoopsConfig']['language'] . '/style.css'); +elseif (is_file(XOOPS_ROOT_PATH . "/modules/" . basename(__DIR__) . '/language/english/style.css')) + $GLOBALS['xoTheme']->addStylesheet(XOOPS_URL . "/modules/" . basename(__DIR__) . '/language/english/style.css'); + +$countries_handler = xoops_getmodulehandler("countries", basename(__DIR__)); +$users_handler = xoops_getmodulehandler("users", basename(__DIR__)); + +if (defined('XOOPS_DOMAIN_COUNTRYID')) { + $country = xoops_getmodulehandler("countries", basename(__DIR__))->get(constant("XOOPS_DOMAIN_COUNTRYID")); + if ($countriesConfigsList['htaccess']) + $GLOBALS['xoopsTpl']->assign("countryflag", XOOPS_URL . '/modules/' . basename(__DIR__) . '/images/flag/' . $country->getVar('countryid') . '/Flag_of_' . str_replace(' ', '_', $country->getVar('country')) . '.png'); + else + $GLOBALS['xoopsTpl']->assign("coun... [truncated message content] |