From: <wis...@us...> - 2012-10-09 22:03:27
|
Revision: 10210 http://sourceforge.net/p/xoops/svn/10210 Author: wishcraft Date: 2012-10-09 22:03:21 +0000 (Tue, 09 Oct 2012) Log Message: ----------- XFriendica Class and Database Design (RC) Added Paths: ----------- XoopsModules/xfriendica/ XoopsModules/xfriendica/trunk/ XoopsModules/xfriendica/trunk/modules/ XoopsModules/xfriendica/trunk/modules/xfriendica/ XoopsModules/xfriendica/trunk/modules/xfriendica/admin/ XoopsModules/xfriendica/trunk/modules/xfriendica/api/ XoopsModules/xfriendica/trunk/modules/xfriendica/blocks/ XoopsModules/xfriendica/trunk/modules/xfriendica/class/ XoopsModules/xfriendica/trunk/modules/xfriendica/class/addons.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/addons_functions.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/addons_modules.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/addons_protocols.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/addons_resources.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/avartas.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/clients.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/discussions.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/discussions_recipients.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/event.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/event_persons.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/event_types.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/files.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/files_destruct.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/friends.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/friends_finder.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/friends_intro.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/friends_suggestion.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/group.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/group_keywords.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/group_persons.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/guid.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/hash/ XoopsModules/xfriendica/trunk/modules/xfriendica/class/hash/hash.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/hash/index.html XoopsModules/xfriendica/trunk/modules/xfriendica/class/hash/md5/ XoopsModules/xfriendica/trunk/modules/xfriendica/class/hash/md5/index.html XoopsModules/xfriendica/trunk/modules/xfriendica/class/hash/md5/md5.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/hash/password/ XoopsModules/xfriendica/trunk/modules/xfriendica/class/hash/password/index.html XoopsModules/xfriendica/trunk/modules/xfriendica/class/hash/password/password.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/hash/sha1/ XoopsModules/xfriendica/trunk/modules/xfriendica/class/hash/sha1/index.html XoopsModules/xfriendica/trunk/modules/xfriendica/class/hash/sha1/sha1.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/hash/xoopscrc/ XoopsModules/xfriendica/trunk/modules/xfriendica/class/hash/xoopscrc/index.html XoopsModules/xfriendica/trunk/modules/xfriendica/class/hash/xoopscrc/xoops.crc.base.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/hash/xoopscrc/xoops.crc.class.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/hash/xoopscrc/xoops.crc.enumerator.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/hash/xoopscrc/xoops.crc.leaver.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/hash/xoopscrc/xoopscrc.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/item.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/item_chars.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/item_files.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/item_keywords.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/item_signed.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/item_templates.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/item_texts.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/keys.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/keywords.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/keywords_links.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/keywords_same.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/languages.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/locations.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/locations_cities.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/locations_countries.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/locations_postcodes.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/locations_regions.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/locations_streets.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/mail.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/mail_chars.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/mail_contacts.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/mail_files.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/mail_persons.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/mail_texts.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/networks.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/networks_apis.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/networks_apis_files.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/networks_apis_functions.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/networks_apis_packages.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/networks_apis_variables.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/networks_challenges.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/networks_friends.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/networks_keywords.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/networks_languages.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/networks_paths.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/networks_routes.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/networks_servers.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/networks_servers_ips.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/persons.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/persons_keywords.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/persons_search.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/persons_servers_mail.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/persons_spam.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/persons_tokens.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/persons_user.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/photo.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/photo_albums.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/photo_albums_groups.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/photo_albums_keywords.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/photo_data.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/photo_keywords.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/plugins.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/plugins_functions.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/plugins_modules.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/plugins_protocols.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/plugins_resources.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/profile.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/profile_category.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/profile_check.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/profile_data.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/profile_field.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/profile_visibility.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/protocols.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/protocols_functions.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/protocols_resources.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/queue.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/queue_batches.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/queue_tasks.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/statistics.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/statistics_forecasting.php XoopsModules/xfriendica/trunk/modules/xfriendica/class/statistics_history.php XoopsModules/xfriendica/trunk/modules/xfriendica/css/ XoopsModules/xfriendica/trunk/modules/xfriendica/images/ XoopsModules/xfriendica/trunk/modules/xfriendica/images/logo.png XoopsModules/xfriendica/trunk/modules/xfriendica/include/ XoopsModules/xfriendica/trunk/modules/xfriendica/include/discovery.php XoopsModules/xfriendica/trunk/modules/xfriendica/include/function.php XoopsModules/xfriendica/trunk/modules/xfriendica/include/headers.php XoopsModules/xfriendica/trunk/modules/xfriendica/js/ XoopsModules/xfriendica/trunk/modules/xfriendica/language/ XoopsModules/xfriendica/trunk/modules/xfriendica/language/english/ XoopsModules/xfriendica/trunk/modules/xfriendica/plugins/ XoopsModules/xfriendica/trunk/modules/xfriendica/plugins/adaptors/ XoopsModules/xfriendica/trunk/modules/xfriendica/plugins/addons/ XoopsModules/xfriendica/trunk/modules/xfriendica/plugins/connectors/ XoopsModules/xfriendica/trunk/modules/xfriendica/plugins/plugins/ XoopsModules/xfriendica/trunk/modules/xfriendica/protocols/ XoopsModules/xfriendica/trunk/modules/xfriendica/sql/ XoopsModules/xfriendica/trunk/modules/xfriendica/sql/mysql.htm XoopsModules/xfriendica/trunk/modules/xfriendica/sql/mysql.sql XoopsModules/xfriendica/trunk/modules/xfriendica/templates/ XoopsModules/xfriendica/trunk/modules/xfriendica/templates/blocks/ Added: XoopsModules/xfriendica/trunk/modules/xfriendica/class/addons.php =================================================================== --- XoopsModules/xfriendica/trunk/modules/xfriendica/class/addons.php (rev 0) +++ XoopsModules/xfriendica/trunk/modules/xfriendica/class/addons.php 2012-10-09 22:03:21 UTC (rev 10210) @@ -0,0 +1,103 @@ +<?php +/* + * Logs Guest and users IP Addresses for a period of time and provides + * basic statistic of them in XOOPS Copyright (C) 2012 Simon Roberts + * Contact: wishcraft - si...@ch... + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * See /docs/license.pdf for full license. + * + * Shouts:- Mike Macgirvin [mi...@ma...] original author of + * Friendica + * + * Version: 1.01 Alpha + * Published: Chronolabs + * Download: http://code.google.com/p/chronolabs + * This File: addons.php + * Description: Addons Handler and Object Class for Module + * Date: 04/10/2012 10:45AM AEST + * License: GNU3 + * + */ + +defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined"); + +/** + * @package kernel + * @copyright copyright © 2000 XOOPS.org + */ +class XFriendicaAddons extends XoopsObject +{ + function __construct() + { + + $this->initVar('id', XOBJ_DTYPE_INT, null, true); + $this->initVar('salt', XOBJ_DTYPE_TXTBOX, hash(__CLASS__.__FUNCTION__.__LINE__.microtime(true)._MI_XFRND_SALT.XOOPS_DB_HOST.XOOPS_DB_PASS.XOOPS_DB_USER.XOOPS_DB_NAME.XOOPS_ROOT_PATH, 128), false, 128); + $this->initVar('guid', XOBJ_DTYPE_TXTBOX, '', false, 64); + $this->initVar('name', XOBJ_DTYPE_TXTBOX, '', false, 255); + $this->initVar('version', XOBJ_DTYPE_TXTBOX, '', false, 255); + $this->initVar('version-php', XOBJ_DTYPE_TXTBOX, '', false, 16); + $this->initVar('version-xoops', XOBJ_DTYPE_TXTBOX, '', false, 16); + $this->initVar('version-friendica', XOBJ_DTYPE_TXTBOX, '', false, 16); + $this->initVar('dirname', XOBJ_DTYPE_TXTBOX, '', false, 128); + $this->initVar('filename', XOBJ_DTYPE_TXTBOX, '', false, 128); + $this->initVar('protocol-id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('function', XOBJ_DTYPE_TXTBOX, '', false, 128); + $this->initVar('class', XOBJ_DTYPE_TXTBOX, '', false, 128); + $this->initVar('prefix', XOBJ_DTYPE_TXTBOX, '', false, 8); + $this->initVar('network-id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('path-id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('api-id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('upgraded', XOBJ_DTYPE_INT, 0, false); + $this->initVar('installed', XOBJ_DTYPE_ENUM, 'No', false, false, false, array('Yes', 'No')); + $this->initVar('hidden', XOBJ_DTYPE_ENUM, 'No', false, false, false, array('Yes', 'No')); + $this->initVar('system', XOBJ_DTYPE_ENUM, 'No', false, false, false, array('Yes', 'No')); + $this->initVar('admin', XOBJ_DTYPE_ENUM, 'No', false, false, false, array('Yes', 'No')); + $this->initVar('resources', XOBJ_DTYPE_ENUM, 'No', false, false, false, array('Yes', 'No')); + $this->initVar('modules', XOBJ_DTYPE_ENUM, 'No', false, false, false, array('Yes', 'No')); + $this->initVar('protocols', XOBJ_DTYPE_ENUM, 'No', false, false, false, array('Yes', 'No')); + $this->initVar('optionals', XOBJ_DTYPE_ENUM, 'No', false, false, false, array('Yes', 'No')); + $this->initVar('last', XOBJ_DTYPE_INT, 0, false); + $this->initVar('created', XOBJ_DTYPE_INT, 0, false); + $this->initVar('updated', XOBJ_DTYPE_INT, 0, false); + } + +} + +/** + * @package kernel + * @copyright copyright © 2000 XOOPS.org + */ +class XFriendicaAddonsHandler extends XoopsPersistableObjectHandler +{ + function XFriendicaAddonsHandler(&$db) + { + $this->__construct($db); + } + + function __construct(&$db) + { + parent::__construct($db, "xfriendica_addons", "XFriendicaAddons", "id", 'name'); + } + + function insert($object, $force = true) { + if ($object->isNew()) + $object->setVar('created', time()); + else + $object->setVar('updated', time()); + + return parent::insert($object, $force); + } +} +?> \ No newline at end of file Added: XoopsModules/xfriendica/trunk/modules/xfriendica/class/addons_functions.php =================================================================== --- XoopsModules/xfriendica/trunk/modules/xfriendica/class/addons_functions.php (rev 0) +++ XoopsModules/xfriendica/trunk/modules/xfriendica/class/addons_functions.php 2012-10-09 22:03:21 UTC (rev 10210) @@ -0,0 +1,83 @@ +<?php +/* + * Logs Guest and users IP Addresses for a period of time and provides + * basic statistic of them in XOOPS Copyright (C) 2012 Simon Roberts + * Contact: wishcraft - si...@ch... + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * See /docs/license.pdf for full license. + * + * Shouts:- Mike Macgirvin [mi...@ma...] original author of + * Friendica + * + * Version: 1.01 Alpha + * Published: Chronolabs + * Download: http://code.google.com/p/chronolabs + * This File: addons_functions.php + * Description: Addons_functions Handler and Object Class for Module + * Date: 04/10/2012 10:45AM AEST + * License: GNU3 + * + */ + +defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined"); + +/** + * @package kernel + * @copyright copyright © 2000 XOOPS.org + */ +class XFriendicaAddons_functions extends XoopsObject +{ + function __construct() + { + + $this->initVar('id', XOBJ_DTYPE_INT, null, true); + $this->initVar('addon-id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('filename', XOBJ_DTYPE_TXTBOX, '', false, 128); + $this->initVar('function', XOBJ_DTYPE_TXTBOX, '', false, 128); + $this->initVar('class', XOBJ_DTYPE_TXTBOX, '', false, 128); + $this->initVar('command', XOBJ_DTYPE_TXTBOX, '', false, 128); + $this->initVar('last', XOBJ_DTYPE_INT, 0, false); + $this->initVar('created', XOBJ_DTYPE_INT, 0, false); + $this->initVar('updated', XOBJ_DTYPE_INT, 0, false); + } + +} + +/** + * @package kernel + * @copyright copyright © 2000 XOOPS.org + */ +class XFriendicaAddons_functionsHandler extends XoopsPersistableObjectHandler +{ + function XFriendicaAddons_functionsHandler(&$db) + { + $this->__construct($db); + } + + function __construct(&$db) + { + parent::__construct($db, "xfriendica_addons_functions", "XFriendicaAddons_functions", "id", 'command'); + } + + function insert($object, $force = true) { + if ($object->isNew()) + $object->setVar('created', time()); + else + $object->setVar('updated', time()); + + return parent::insert($object, $force); + } +} +?> \ No newline at end of file Added: XoopsModules/xfriendica/trunk/modules/xfriendica/class/addons_modules.php =================================================================== --- XoopsModules/xfriendica/trunk/modules/xfriendica/class/addons_modules.php (rev 0) +++ XoopsModules/xfriendica/trunk/modules/xfriendica/class/addons_modules.php 2012-10-09 22:03:21 UTC (rev 10210) @@ -0,0 +1,82 @@ +<?php +/* + * Logs Guest and users IP Addresses for a period of time and provides + * basic statistic of them in XOOPS Copyright (C) 2012 Simon Roberts + * Contact: wishcraft - si...@ch... + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * See /docs/license.pdf for full license. + * + * Shouts:- Mike Macgirvin [mi...@ma...] original author of + * Friendica + * + * Version: 1.01 Alpha + * Published: Chronolabs + * Download: http://code.google.com/p/chronolabs + * This File: addons_modules.php + * Description: Addons_modules Handler and Object Class for Module + * Date: 04/10/2012 10:45AM AEST + * License: GNU3 + * + */ + +defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined"); + +/** + * @package kernel + * @copyright copyright © 2000 XOOPS.org + */ +class XFriendicaAddons_modules extends XoopsObject +{ + function __construct() + { + + $this->initVar('id', XOBJ_DTYPE_INT, null, true); + $this->initVar('addon-id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('dirname', XOBJ_DTYPE_TXTBOX, '', false, 128); + $this->initVar('version', XOBJ_DTYPE_DECIMAL, 0, false); + $this->initVar('required', XOBJ_DTYPE_ENUM, 'No', false, false, false, array('Yes', 'No')); + $this->initVar('optional', XOBJ_DTYPE_ENUM, 'No', false, false, false, array('Yes', 'No')); + $this->initVar('created', XOBJ_DTYPE_INT, 0, false); + $this->initVar('updated', XOBJ_DTYPE_INT, 0, false); + } + +} + +/** + * @package kernel + * @copyright copyright © 2000 XOOPS.org + */ +class XFriendicaAddons_modulesHandler extends XoopsPersistableObjectHandler +{ + function XFriendicaAddons_modulesHandler(&$db) + { + $this->__construct($db); + } + + function __construct(&$db) + { + parent::__construct($db, "xfriendica_addons_modules", "XFriendicaAddons_modules", "id", 'dirname'); + } + + function insert($object, $force = true) { + if ($object->isNew()) + $object->setVar('created', time()); + else + $object->setVar('updated', time()); + + return parent::insert($object, $force); + } +} +?> \ No newline at end of file Added: XoopsModules/xfriendica/trunk/modules/xfriendica/class/addons_protocols.php =================================================================== --- XoopsModules/xfriendica/trunk/modules/xfriendica/class/addons_protocols.php (rev 0) +++ XoopsModules/xfriendica/trunk/modules/xfriendica/class/addons_protocols.php 2012-10-09 22:03:21 UTC (rev 10210) @@ -0,0 +1,82 @@ +<?php +/* + * Logs Guest and users IP Addresses for a period of time and provides + * basic statistic of them in XOOPS Copyright (C) 2012 Simon Roberts + * Contact: wishcraft - si...@ch... + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * See /docs/license.pdf for full license. + * + * Shouts:- Mike Macgirvin [mi...@ma...] original author of + * Friendica + * + * Version: 1.01 Alpha + * Published: Chronolabs + * Download: http://code.google.com/p/chronolabs + * This File: addons_protocols.php + * Description: Addons_protocols Handler and Object Class for Module + * Date: 04/10/2012 10:45AM AEST + * License: GNU3 + * + */ + +defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined"); + +/** + * @package kernel + * @copyright copyright © 2000 XOOPS.org + */ +class XFriendicaAddons_protocols extends XoopsObject +{ + function __construct() + { + + $this->initVar('id', XOBJ_DTYPE_INT, null, true); + $this->initVar('addon-id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('protocol-id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('global-guid', XOBJ_DTYPE_TXTBOX, '', false, 64); + $this->initVar('required', XOBJ_DTYPE_ENUM, 'No', false, false, false, array('Yes', 'No')); + $this->initVar('optional', XOBJ_DTYPE_ENUM, 'No', false, false, false, array('Yes', 'No')); + $this->initVar('created', XOBJ_DTYPE_INT, 0, false); + $this->initVar('updated', XOBJ_DTYPE_INT, 0, false); + } + +} + +/** + * @package kernel + * @copyright copyright © 2000 XOOPS.org + */ +class XFriendicaAddons_protocolsHandler extends XoopsPersistableObjectHandler +{ + function XFriendicaAddons_protocolsHandler(&$db) + { + $this->__construct($db); + } + + function __construct(&$db) + { + parent::__construct($db, "xfriendica_addons_protocols", "XFriendicaAddons_protocols", "id", 'global-guid'); + } + + function insert($object, $force = true) { + if ($object->isNew()) + $object->setVar('created', time()); + else + $object->setVar('updated', time()); + + return parent::insert($object, $force); + } +} +?> \ No newline at end of file Added: XoopsModules/xfriendica/trunk/modules/xfriendica/class/addons_resources.php =================================================================== --- XoopsModules/xfriendica/trunk/modules/xfriendica/class/addons_resources.php (rev 0) +++ XoopsModules/xfriendica/trunk/modules/xfriendica/class/addons_resources.php 2012-10-09 22:03:21 UTC (rev 10210) @@ -0,0 +1,86 @@ +<?php +/* + * Logs Guest and users IP Addresses for a period of time and provides + * basic statistic of them in XOOPS Copyright (C) 2012 Simon Roberts + * Contact: wishcraft - si...@ch... + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * See /docs/license.pdf for full license. + * + * Shouts:- Mike Macgirvin [mi...@ma...] original author of + * Friendica + * + * Version: 1.01 Alpha + * Published: Chronolabs + * Download: http://code.google.com/p/chronolabs + * This File: addons_resources.php + * Description: Addons_resources Handler and Object Class for Module + * Date: 04/10/2012 10:45AM AEST + * License: GNU3 + * + */ + +defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined"); + +/** + * @package kernel + * @copyright copyright © 2000 XOOPS.org + */ +class XFriendicaAddons_resources extends XoopsObject +{ + function __construct() + { + + $this->initVar('id', XOBJ_DTYPE_INT, null, true); + $this->initVar('addon-id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('type', XOBJ_DTYPE_ENUM, 'extension', false, false, false, array('function','extension','class','module','core')); + $this->initVar('name', XOBJ_DTYPE_TXTBOX, '', false, 128); + $this->initVar('dirname', XOBJ_DTYPE_TXTBOX, '', false, 128); + $this->initVar('version', XOBJ_DTYPE_DECIMAL, 1.0, false); + $this->initVar('class', XOBJ_DTYPE_TXTBOX, '', false, 128); + $this->initVar('command', XOBJ_DTYPE_TXTBOX, '', false, 128); + $this->initVar('required', XOBJ_DTYPE_ENUM, 'No', false, false, false, array('Yes', 'No')); + $this->initVar('optional', XOBJ_DTYPE_ENUM, 'No', false, false, false, array('Yes', 'No')); + $this->initVar('created', XOBJ_DTYPE_INT, 0, false); + $this->initVar('updated', XOBJ_DTYPE_INT, 0, false); + } + +} + +/** + * @package kernel + * @copyright copyright © 2000 XOOPS.org + */ +class XFriendicaAddons_resourcesHandler extends XoopsPersistableObjectHandler +{ + function XFriendicaAddons_resourcesHandler(&$db) + { + $this->__construct($db); + } + + function __construct(&$db) + { + parent::__construct($db, "xfriendica_addons_resources", "XFriendicaAddons_resources", "id", 'name'); + } + + function insert($object, $force = true) { + if ($object->isNew()) + $object->setVar('created', time()); + else + $object->setVar('updated', time()); + + return parent::insert($object, $force); + } +} +?> \ No newline at end of file Added: XoopsModules/xfriendica/trunk/modules/xfriendica/class/avartas.php =================================================================== --- XoopsModules/xfriendica/trunk/modules/xfriendica/class/avartas.php (rev 0) +++ XoopsModules/xfriendica/trunk/modules/xfriendica/class/avartas.php 2012-10-09 22:03:21 UTC (rev 10210) @@ -0,0 +1,83 @@ +<?php +/* + * Logs Guest and users IP Addresses for a period of time and provides + * basic statistic of them in XOOPS Copyright (C) 2012 Simon Roberts + * Contact: wishcraft - si...@ch... + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * See /docs/license.pdf for full license. + * + * Shouts:- Mike Macgirvin [mi...@ma...] original author of + * Friendica + * + * Version: 1.01 Alpha + * Published: Chronolabs + * Download: http://code.google.com/p/chronolabs + * This File: avartas.php + * Description: Avartas Handler and Object Class for Module + * Date: 04/10/2012 10:45AM AEST + * License: GNU3 + * + */ + +defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined"); + +/** + * @package kernel + * @copyright copyright © 2000 XOOPS.org + */ +class XFriendicaAvartas extends XoopsObject +{ + function __construct() + { + + $this->initVar('id', XOBJ_DTYPE_INT, null, true); + $this->initVar('guid', XOBJ_DTYPE_TXTBOX, null, false, 64); + $this->initVar('state', XOBJ_DTYPE_ENUM, 'local', false, false, false, array('network','server','local','remote','client')); + $this->initVar('state-id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('file-id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('last', XOBJ_DTYPE_INT, 0, false); + $this->initVar('retrieved', XOBJ_DTYPE_INT, 0, false); + $this->initVar('created', XOBJ_DTYPE_INT, 0, false); + $this->initVar('updated', XOBJ_DTYPE_INT, 0, false); + } + +} + +/** + * @package kernel + * @copyright copyright © 2000 XOOPS.org + */ +class XFriendicaAvartasHandler extends XoopsPersistableObjectHandler +{ + function XFriendicaAvartasHandler(&$db) + { + $this->__construct($db); + } + + function __construct(&$db) + { + parent::__construct($db, "xfriendica_avartas", "XFriendicaAvartas", "id", 'name'); + } + + function insert($object, $force = true) { + if ($object->isNew()) + $object->setVar('created', time()); + else + $object->setVar('updated', time()); + + return parent::insert($object, $force); + } +} +?> \ No newline at end of file Added: XoopsModules/xfriendica/trunk/modules/xfriendica/class/clients.php =================================================================== --- XoopsModules/xfriendica/trunk/modules/xfriendica/class/clients.php (rev 0) +++ XoopsModules/xfriendica/trunk/modules/xfriendica/class/clients.php 2012-10-09 22:03:21 UTC (rev 10210) @@ -0,0 +1,84 @@ +<?php +/* + * Logs Guest and users IP Addresses for a period of time and provides + * basic statistic of them in XOOPS Copyright (C) 2012 Simon Roberts + * Contact: wishcraft - si...@ch... + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * See /docs/license.pdf for full license. + * + * Shouts:- Mike Macgirvin [mi...@ma...] original author of + * Friendica + * + * Version: 1.01 Alpha + * Published: Chronolabs + * Download: http://code.google.com/p/chronolabs + * This File: clients.php + * Description: Clients Handler and Object Class for Module + * Date: 04/10/2012 10:45AM AEST + * License: GNU3 + * + */ + +defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined"); + +/** + * @package kernel + * @copyright copyright © 2000 XOOPS.org + */ +class XFriendicaClients extends XoopsObject +{ + function __construct() + { + + $this->initVar('client-id', XOBJ_DTYPE_TXTBOX, null, true, 20); + $this->initVar('guid', XOBJ_DTYPE_TXTBOX, '', false, 64); + $this->initVar('name', XOBJ_DTYPE_TXTBOX, '', false, 255); + $this->initVar('keys-id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('avarta-id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('go-url-id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('website-url-id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('created', XOBJ_DTYPE_INT, 0, false); + $this->initVar('updated', XOBJ_DTYPE_INT, 0, false); + + } + +} + +/** + * @package kernel + * @copyright copyright © 2000 XOOPS.org + */ +class XFriendicaClientsHandler extends XoopsPersistableObjectHandler +{ + function XFriendicaClientsHandler(&$db) + { + $this->__construct($db); + } + + function __construct(&$db) + { + parent::__construct($db, "xfriendica_clients", "XFriendicaClients", "id", 'name'); + } + + function insert($object, $force = true) { + if ($object->isNew()) + $object->setVar('created', time()); + else + $object->setVar('updated', time()); + + return parent::insert($object, $force); + } +} +?> \ No newline at end of file Added: XoopsModules/xfriendica/trunk/modules/xfriendica/class/discussions.php =================================================================== --- XoopsModules/xfriendica/trunk/modules/xfriendica/class/discussions.php (rev 0) +++ XoopsModules/xfriendica/trunk/modules/xfriendica/class/discussions.php 2012-10-09 22:03:21 UTC (rev 10210) @@ -0,0 +1,82 @@ +<?php +/* + * Logs Guest and users IP Addresses for a period of time and provides + * basic statistic of them in XOOPS Copyright (C) 2012 Simon Roberts + * Contact: wishcraft - si...@ch... + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * See /docs/license.pdf for full license. + * + * Shouts:- Mike Macgirvin [mi...@ma...] original author of + * Friendica + * + * Version: 1.01 Alpha + * Published: Chronolabs + * Download: http://code.google.com/p/chronolabs + * This File: discussions.php + * Description: Discussions Handler and Object Class for Module + * Date: 04/10/2012 10:45AM AEST + * License: GNU3 + * + */ + +defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined"); + +/** + * @package kernel + * @copyright copyright © 2000 XOOPS.org + */ +class XFriendicaDiscussions extends XoopsObject +{ + function __construct() + { + + $this->initVar('id', XOBJ_DTYPE_INT, null, true, 40); + $this->initVar('guid', XOBJ_DTYPE_TXTBOX, '', false, 64); + $this->initVar('person-id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('recipients', XOBJ_DTYPE_INT, 0, false); + $this->initVar('blocked', XOBJ_DTYPE_INT, 0, false); + $this->initVar('spam', XOBJ_DTYPE_INT, 0, false); + $this->initVar('created', XOBJ_DTYPE_INT, 0, false); + $this->initVar('updated', XOBJ_DTYPE_INT, 0, false); + } + +} + +/** + * @package kernel + * @copyright copyright © 2000 XOOPS.org + */ +class XFriendicaDiscussionsHandler extends XoopsPersistableObjectHandler +{ + function XFriendicaDiscussionsHandler(&$db) + { + $this->__construct($db); + } + + function __construct(&$db) + { + parent::__construct($db, "xfriendica_discussions", "XFriendicaDiscussions", "id", 'guid'); + } + + function insert($object, $force = true) { + if ($object->isNew()) + $object->setVar('created', time()); + else + $object->setVar('updated', time()); + + return parent::insert($object, $force); + } +} +?> \ No newline at end of file Added: XoopsModules/xfriendica/trunk/modules/xfriendica/class/discussions_recipients.php =================================================================== --- XoopsModules/xfriendica/trunk/modules/xfriendica/class/discussions_recipients.php (rev 0) +++ XoopsModules/xfriendica/trunk/modules/xfriendica/class/discussions_recipients.php 2012-10-09 22:03:21 UTC (rev 10210) @@ -0,0 +1,79 @@ +<?php +/* + * Logs Guest and users IP Addresses for a period of time and provides + * basic statistic of them in XOOPS Copyright (C) 2012 Simon Roberts + * Contact: wishcraft - si...@ch... + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * See /docs/license.pdf for full license. + * + * Shouts:- Mike Macgirvin [mi...@ma...] original author of + * Friendica + * + * Version: 1.01 Alpha + * Published: Chronolabs + * Download: http://code.google.com/p/chronolabs + * This File: discussions_recipients.php + * Description: Discussions_recipients Handler and Object Class for Module + * Date: 04/10/2012 10:45AM AEST + * License: GNU3 + * + */ + +defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined"); + +/** + * @package kernel + * @copyright copyright © 2000 XOOPS.org + */ +class XFriendicaDiscussions_recipients extends XoopsObject +{ + function __construct() + { + + $this->initVar('id', XOBJ_DTYPE_INT, null, true); + $this->initVar('discussions-id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('person-id', XOBJ_DTYPE_IN, 0, false); + $this->initVar('created', XOBJ_DTYPE_INT, 0, false); + $this->initVar('updated', XOBJ_DTYPE_INT, 0, false); + } + +} + +/** + * @package kernel + * @copyright copyright © 2000 XOOPS.org + */ +class XFriendicaDiscussions_recipientsHandler extends XoopsPersistableObjectHandler +{ + function XFriendicaDiscussions_recipientsHandler(&$db) + { + $this->__construct($db); + } + + function __construct(&$db) + { + parent::__construct($db, "xfriendica_discussions_recipients", "XFriendicaDiscussions_recipients", "id", 'value'); + } + + function insert($object, $force = true) { + if ($object->isNew()) + $object->setVar('created', time()); + else + $object->setVar('updated', time()); + + return parent::insert($object, $force); + } +} +?> \ No newline at end of file Added: XoopsModules/xfriendica/trunk/modules/xfriendica/class/event.php =================================================================== --- XoopsModules/xfriendica/trunk/modules/xfriendica/class/event.php (rev 0) +++ XoopsModules/xfriendica/trunk/modules/xfriendica/class/event.php 2012-10-09 22:03:21 UTC (rev 10210) @@ -0,0 +1,94 @@ +<?php +/* + * Logs Guest and users IP Addresses for a period of time and provides + * basic statistic of them in XOOPS Copyright (C) 2012 Simon Roberts + * Contact: wishcraft - si...@ch... + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * See /docs/license.pdf for full license. + * + * Shouts:- Mike Macgirvin [mi...@ma...] original author of + * Friendica + * + * Version: 1.01 Alpha + * Published: Chronolabs + * Download: http://code.google.com/p/chronolabs + * This File: conv.php + * Description: Event Handler and Object Class for Module + * Date: 04/10/2012 10:45AM AEST + * License: GNU3 + * + */ + +defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined"); + +/** + * @package kernel + * @copyright copyright © 2000 XOOPS.org + */ +class XFriendicaEvent extends XoopsObject +{ + function __construct() + { + + $this->initVar('id', XOBJ_DTYPE_INT, null, true); + $this->initVar('guid', XOBJ_DTYPE_TXTBOX, '', false, 64); + $this->initVar('type-id', XOBJ_DTYPE_INT, null, true); + $this->initVar('person-id', XOBJ_DTYPE_INT, null, true); + $this->initVar('location-id', XOBJ_DTYPE_INT, null, true); + $this->initVar('invitees', XOBJ_DTYPE_INT, null, true); + $this->initVar('attending', XOBJ_DTYPE_INT, null, true); + $this->initVar('missing', XOBJ_DTYPE_INT, null, true); + $this->initVar('maybe', XOBJ_DTYPE_INT, null, true); + $this->initVar('url-id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('start', XOBJ_DTYPE_INT, 0, false); + $this->initVar('finish', XOBJ_DTYPE_INT, 0, false); + $this->initVar('passion', XOBJ_DTYPE_ENUM, 'No', false, false, false, array('Yes', 'No')); + $this->initVar('nofinish', XOBJ_DTYPE_ENUM, 'No', false, false, false, array('Yes', 'No')); + $this->initVar('adjust', XOBJ_DTYPE_ENUM, 'No', false, false, false, array('Yes', 'No')); + $this->initVar('ignore', XOBJ_DTYPE_ENUM, 'No', false, false, false, array('Yes', 'No')); + $this->initVar('activity', XOBJ_DTYPE_DECIMAL, 0, false); + $this->initVar('created', XOBJ_DTYPE_INT, 0, false); + $this->initVar('updated', XOBJ_DTYPE_INT, 0, false); + + } + +} + +/** + * @package kernel + * @copyright copyright © 2000 XOOPS.org + */ +class XFriendicaEventHandler extends XoopsPersistableObjectHandler +{ + function XFriendicaEventHandler(&$db) + { + $this->__construct($db); + } + + function __construct(&$db) + { + parent::__construct($db, "xfriendica_event", "XFriendicaEvent", "id", 'cmd'); + } + + function insert($object, $force = true) { + if ($object->isNew()) + $object->setVar('created', time()); + else + $object->setVar('updated', time()); + + return parent::insert($object, $force); + } +} +?> \ No newline at end of file Added: XoopsModules/xfriendica/trunk/modules/xfriendica/class/event_persons.php =================================================================== --- XoopsModules/xfriendica/trunk/modules/xfriendica/class/event_persons.php (rev 0) +++ XoopsModules/xfriendica/trunk/modules/xfriendica/class/event_persons.php 2012-10-09 22:03:21 UTC (rev 10210) @@ -0,0 +1,83 @@ +<?php +/* + * Logs Guest and users IP Addresses for a period of time and provides + * basic statistic of them in XOOPS Copyright (C) 2012 Simon Roberts + * Contact: wishcraft - si...@ch... + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * See /docs/license.pdf for full license. + * + * Shouts:- Mike Macgirvin [mi...@ma...] original author of + * Friendica + * + * Version: 1.01 Alpha + * Published: Chronolabs + * Download: http://code.google.com/p/chronolabs + * This File: conv.php + * Description: Event_persons Handler and Object Class for Module + * Date: 04/10/2012 10:45AM AEST + * License: GNU3 + * + */ + +defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined"); + +/** + * @package kernel + * @copyright copyright © 2000 XOOPS.org + */ +class XFriendicaEvent_persons extends XoopsObject +{ + function __construct() + { + + $this->initVar('id', XOBJ_DTYPE_INT, null, true, 40); + $this->initVar('state', XOBJ_DTYPE_ENUM, null, false, false, false, array('attenting','missing','maybe','invitee')); + $this->initVar('event-id', XOBJ_DTYPE_INT, null, false, 40); + $this->initVar('to-person-id', XOBJ_DTYPE_INT, null, false); + $this->initVar('from-person-id', XOBJ_DTYPE_INT, null, false); + $this->initVar('notified', XOBJ_DTYPE_INT, null, false); + $this->initVar('syndicated', XOBJ_DTYPE_INT, null, false); + $this->initVar('created', XOBJ_DTYPE_INT, 0, false); + $this->initVar('updated', XOBJ_DTYPE_INT, 0, false); + } + +} + +/** + * @package kernel + * @copyright copyright © 2000 XOOPS.org + */ +class XFriendicaEvent_personsHandler extends XoopsPersistableObjectHandler +{ + function XFriendicaEvent_personsHandler(&$db) + { + $this->__construct($db); + } + + function __construct(&$db) + { + parent::__construct($db, "xfriendica_event_persons", "XFriendicaEvent_persons", "id", 'contact-id'); + } + + function insert($object, $force = true) { + if ($object->isNew()) + $object->setVar('created', time()); + else + $object->setVar('updated', time()); + + return parent::insert($object, $force); + } +} +?> \ No newline at end of file Added: XoopsModules/xfriendica/trunk/modules/xfriendica/class/event_types.php =================================================================== --- XoopsModules/xfriendica/trunk/modules/xfriendica/class/event_types.php (rev 0) +++ XoopsModules/xfriendica/trunk/modules/xfriendica/class/event_types.php 2012-10-09 22:03:21 UTC (rev 10210) @@ -0,0 +1,69 @@ +<?php +/* + * Logs Guest and users IP Addresses for a period of time and provides + * basic statistic of them in XOOPS Copyright (C) 2012 Simon Roberts + * Contact: wishcraft - si...@ch... + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * See /docs/license.pdf for full license. + * + * Shouts:- Mike Macgirvin [mi...@ma...] original author of + * Friendica + * + * Version: 1.01 Alpha + * Published: Chronolabs + * Download: http://code.google.com/p/chronolabs + * This File: conv.php + * Description: Event_types Handler and Object Class for Module + * Date: 04/10/2012 10:45AM AEST + * License: GNU3 + * + */ + +defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined"); + +/** + * @package kernel + * @copyright copyright © 2000 XOOPS.org + */ +class XFriendicaEvent_types extends XoopsObject +{ + function __construct() + { + + $this->initVar('id', XOBJ_DTYPE_INT, null, true, 40); + $this->initVar('type', XOBJ_DTYPE_TXTBOX, null, false, 128); + $this->initVar('language', XOBJ_DTYPE_TXTBOX, null, false, 5); + } + +} + +/** + * @package kernel + * @copyright copyright © 2000 XOOPS.org + */ +class XFriendicaEvent_typesHandler extends XoopsPersistableObjectHandler +{ + function XFriendicaEvent_typesHandler(&$db) + { + $this->__construct($db); + } + + function __construct(&$db) + { + parent::__construct($db, "xfriendica_event_types", "XFriendicaEvent_types", "id", 'type'); + } + +} +?> \ No newline at end of file Added: XoopsModules/xfriendica/trunk/modules/xfriendica/class/files.php =================================================================== --- XoopsModules/xfriendica/trunk/modules/xfriendica/class/files.php (rev 0) +++ XoopsModules/xfriendica/trunk/modules/xfriendica/class/files.php 2012-10-09 22:03:21 UTC (rev 10210) @@ -0,0 +1,98 @@ +<?php +/* + * Logs Guest and users IP Addresses for a period of time and provides + * basic statistic of them in XOOPS Copyright (C) 2012 Simon Roberts + * Contact: wishcraft - si...@ch... + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * See /docs/license.pdf for full license. + * + * Shouts:- Mike Macgirvin [mi...@ma...] original author of + * Friendica + * + * Version: 1.01 Alpha + * Published: Chronolabs + * Download: http://code.google.com/p/chronolabs + * This File: conv.php + * Description: Files Handler and Object Class for Module + * Date: 04/10/2012 10:45AM AEST + * License: GNU3 + * + */ + +defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined"); + +/** + * @package kernel + * @copyright copyright © 2000 XOOPS.org + */ +class XFriendicaFiles extends XoopsObject +{ + function __construct() + { + + $this->initVar('id', XOBJ_DTYPE_INT, null, true); + $this->initVar('guid', XOBJ_DTYPE_TXTBOX, '', false, 64); + $this->initVar('person-id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('source', XOBJ_DTYPE_ENUM, 'server', false, false, false, array('server','remote','unknown')); + $this->initVar('state', XOBJ_DTYPE_ENUM, 'image', false, false, false, array('image','binary')); + $this->initVar('mode', XOBJ_DTYPE_ENUM, 'photo', false, false, false, array('photo','icon','avarta','binary')); + $this->initVar('relative', XOBJ_DTYPE_ENUM, 'XOOPS_UPLOAD_PATH', false, false, false, array('XOOPS_ROOT_PATH','XOOPS_UPLOAD_PATH','XOOPS_VAR_PATH','XOOPS_TRUST_PATH','URL','REMOTE')); + $this->initVar('availability', XOBJ_DTYPE_ENUM, 'network', false, false, false, array('global','network','private','tribe','friends','individual','tokenised','password')); + $this->initVar('auth-method', XOBJ_DTYPE_ENUM, 'handshake', false, false, false, array('handshake','identity','trust','header','path','get','post','none')); + $this->initVar('md5', XOBJ_DTYPE_TXTBOX, 0, false, 32); + $this->initVar('path', XOBJ_DTYPE_TXTBOX, 0, false, 255); + $this->initVar('storedas', XOBJ_DTYPE_TXTBOX, 0, false, 128); + $this->initVar('filename', XOBJ_DTYPE_TXTBOX, 0, false, 128); + $this->initVar('size', XOBJ_DTYPE_INT, 0, false, 32); + $this->initVar('type', XOBJ_DTYPE_TXTBOX, 0, false, 128); + $this->initVar('activity', XOBJ_DTYPE_DECIMAL, 0, false); + $this->initVar('network-id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('server-id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('path-id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('api-id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('scheduled', XOBJ_DTYPE_INT, 0, false); + $this->initVar('created', XOBJ_DTYPE_INT, 0, false); + $this->initVar('updated', XOBJ_DTYPE_INT, 0, false); + + } + +} + +/** + * @package kernel + * @copyright copyright © 2000 XOOPS.org + */ +class XFriendicaFilesHandler extends XoopsPersistableObjectHandler +{ + function XFriendicaFilesHandler(&$db) + { + $this->__construct($db); + } + + function __construct(&$db) + { + parent::__construct($db, "xfriendica_files", "XFriendicaFiles", "id", 'cmd'); + } + + function insert($object, $force = true) { + if ($object->isNew()) + $object->setVar('created', time()); + else + $object->setVar('updated', time()); + + return parent::insert($object, $force); + } +} +?> \ No newline at end of file Added: XoopsModules/xfriendica/trunk/modules/xfriendica/class/files_destruct.php =================================================================== --- XoopsModules/xfriendica/trunk/modules/xfriendica/class/files_destruct.php (rev 0) +++ XoopsModules/xfriendica/trunk/modules/xfriendica/class/files_destruct.php 2012-10-09 22:03:21 UTC (rev 10210) @@ -0,0 +1,85 @@ +<?php +/* + * Logs Guest and users IP Addresses for a period of time and provides + * basic statistic of them in XOOPS Copyright (C) 2012 Simon Roberts + * Contact: wishcraft - si...@ch... + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * See /docs/license.pdf for full license. + * + * Shouts:- Mike Macgirvin [mi...@ma...] original author of + * Friendica + * + * Version: 1.01 Alpha + * Published: Chronolabs + * Download: http://code.google.com/p/chronolabs + * This File: conv.php + * Description: Files_destruct Handler and Object Class for Module + * Date: 04/10/2012 10:45AM AEST + * License: GNU3 + * + */ + +defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined"); + +/** + * @package kernel + * @copyright copyright © 2000 XOOPS.org + */ +class XFriendicaFiles_destruct extends XoopsObject +{ + function __construct() + { + + $this->initVar('id', XOBJ_DTYPE_INT, null, true); + $this->initVar('file-id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('person-id', XOBJ_DTYPE_INT, 0, false); + $this->initVar('retrieved', XOBJ_DTYPE_ENUM, 'No', false, false, false, array('Yes','No')); + $this->initVar('downloaded', XOBJ_DTYPE_ENUM, 'No', false, false, false, array('Yes','No')); + $this->initVar('destroyed', XOBJ_DTYPE_INT, 0, false); + $this->initVar('expires', XOBJ_DTYPE_INT, 0, false); + $this->initVar('scheduled', XOBJ_DTYPE_INT, 0, false); + $this->initVar('created', XOBJ_DTYPE_INT, 0, false); + $this->initVar('updated', XOBJ_DTYPE_INT, 0, false); + + } + +} + +/** + * @package kernel + * @copyright copyright © 2000 XOOPS.org + */ +class XFriendicaFiles_destructHandler extends XoopsPersistableObjectHandler +{ + function XFriendicaFiles_destructHandler(&$db) + { + $this->__construct($db); + } + + function __construct(&$db) + { + parent::__construct($db, "xfriendica_files_destruct", "XFriendicaFiles_destruct", "id", 'destroyed'); + } + + function insert($object, $force = true) { + if ($object->isNew()) + $object->setVar('created', time()); + else + $object->setVar('updated', time()); + + return parent::insert($object, $force); + } +} +?> \ No newline at end of file Added: XoopsModules/xfriendica/trunk/modules/xfriendica/class/friends.php =================================================================== --- XoopsModules/xfriendica/trunk/modules/xfriendica/class/friends.php (rev 0) +++ XoopsModules/xfriendica/trunk/modules/xfriendica/class/friends.php 2012-10-09 22:03:21 UTC (rev 10210) @@ -0,0 +1,86 @@ +<?php +/* + * Logs Guest and users IP Addresses for a period of time and provides + * basic statistic of them in XOOPS Copyright (C) 2012 Simon Roberts + * Contact: wishcraft - si...@ch... + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * See /docs/license.pdf for full license. + * + * Shouts:- Mike Macgirvin [mi...@ma...] original author of + * Friendica + * + * Version: 1.01 Alpha + * Published: Chronolabs + * Download: http://code.google.com/p/chronolabs + * This File: conv.php + * Description: Friends Handler and Object Class for Module + * Date: 04/10/2012 10:45AM AEST + * License: GNU3 + * + */ + +defined('XOOPS_ROOT_PATH') or die("XOOPS root path not defined"); + +/** + * @package kernel + * @copyright copyright © 2000 XOOPS.org + */ +class XFriendicaFriends extends XoopsObject +{ + function __construct() + { + + $this->initVar('id', XOBJ_DTYPE_INT... [truncated message content] |