Following the API System Utility Application Utility

Similar documents
Introduction. Welcom to The WebGUI API

WebGUI Utility Scripts. Graham Knop /

Web Focused Programming With PHP

CERTIFICATE IN WEB PROGRAMMING

User Account Manager

JavaScript Specialist v2.0 Exam 1D0-735

The Electronic Voting System - EVS

OBS Groups API manual

PHP,HTML5, CSS3, JQUERY SYLLABUS

Protect My Ministry Integrated Background Checks for Church Community Builder

A Crash Course in Perl5

Moodle 1.9 Extension Development

User Management in Resource Manager

PHPKB API Reference Guide

Dojo: An Accessible JavaScript Toolkit

Forms, Form Events, and Validation. Bok, Jong Soon

SQLITE PERL TUTORIAL

Global Variables Interface

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

CHECKOUT CUSTOM FIELD FOR MAGENTO 2

SAS Solutions for the Web: Static and Dynamic Alternatives Matthew Grover, S-Street Consulting, Inc.

Manual for CKForms component Release 1.3.1

ITEC447 Web Projects CHAPTER 9 FORMS 1

CSE 154 LECTURE 8: FORMS

Transaction Cordinator: Design and Planning

LICENSE4J AUTO LICENSE GENERATION AND ACTIVATION SERVER USER GUIDE

Listing of SQLSTATE values

Updated PDF Support Manual:

Eloqua Integration User Guide. Cvent, Inc 1765 Greensboro Station Place McLean, VA

Guest account (Windows)

HOW TO FLASK. And a very short intro to web development and databases

CS Exam 1 Review Suggestions - Spring 2017

Document Object Model. Overview

Outline of Lecture 5. Course Content. Objectives of Lecture 6 CGI and HTML Forms

PURR The Persistent URL Resource Resolver

NEO OPC Client Driver. The NEO OPC Client can be launched by configuring an OPC Link from the New Link or Add Link dialog as the followings:

Sitelok Manual. Copyright Vibralogix. All rights reserved.

System Pages (Setup Admins Only)

Web Design and Development ACS Chapter 13. Using Forms 11/27/2018 1

TUTORIAL QUESTION BANK

C Q&As. IBM Tivoli Storage Manager V7.1 Implementation. Pass IBM C Exam with 100% Guarantee

Vector Issue Tracker and License Manager - Administrator s Guide. Configuring and Maintaining Vector Issue Tracker and License Manager

To configure the extension please go to System Configuration Order Attributes in the admin panel.

INTRODUCTION TO.NET. Domain of.net D.N.A. Architecture One Tier Two Tier Three Tier N-Tier THE COMMON LANGUAGE RUNTIME (C.L.R.)

DOT NET Syllabus (6 Months)

CSC4370/6370 Spring/2010 Project 1 Weight: 40% of the final grade for undergraduates, 20% for graduates. Due: May/8th

NetIQ Privileged Account Manager 3.2 Patch Update 4 Release Notes

Zoho Integration. Installation Manual Release. 1 P a g e

Release Notes McAfee Vulnerability Manager 7.5.8

Web Site Design and Development Lecture 23. CS 0134 Fall 2018 Tues and Thurs 1:00 2:15PM

Pulse Secure Policy Secure

Defect Details. Defect Id: Error when disabling slide show in Site admin: Invalid numeric input for Slide show interval (ms)

Relationship Was Not Loaded Because The Type

Systems Design and Implementation I.4 Naming in a Multiserver OS

Web Application Development (WAD) V th Sem BBAITM (Unit 4) By: Binit Patel

CMPT 354 Database Systems I

PERL DATABASE ACCESS

HTML5, CSS3, JQUERY SYLLABUS

DOT NET SYLLABUS FOR 6 MONTHS

How to Setup Goals in Google Analytics

COMS 469: Interactive Media II

Creating Forms in SOCS

Table of contents. DMXzoneUniformManual DMXzone

CMS and e-commerce Solutions. version 1.0. Please, visit us at: or contact directly by

.NET Advance Package Syllabus

SPARK. User Manual Ver ITLAQ Technologies

TEXTAREA NN 2 IE 3 DOM 1

Importing Existing Data into LastPass

Oracle TimesTen Patchset Update

User Manual. ARK for SharePoint-2007

OrangeCRM Business Intelligence API IMPLEMENTATION GUIDE

Certified Secure Web Application Secure Development Checklist

Full Stack Web Developer

25Live Custom Report Integration

CORAL Resources Module User Guide

HTML5. HTML5 Introduction. Form Input Types. Semantic Elements. Form Attributes. Form Elements. Month Number Range Search Tel Url Time Week

Splitting and Merging. Down and Dirty Made Easy

HTML. HTML Evolution

Aitoc. Checkout Fields Manager User Manual for Magento

Application Notes: SightMax Configuration For MAXCS Release 8.0. January 13, Page 1 of 7. SightMax Configuration for MaxCS

UNIT I Java Bean, HTML & Javascript

1. Begin by selecting [Content] > [Add Content] > [Webform] in the administrative toolbar. A new Webform page should appear.

Lucid Key Server. Help Documentation.

Web Development. With PHP. Web Development With PHP

All Applications Release Bulletin January 2010

ForeScout CounterACT. Configuration Guide. Version 4.1

Configuring Vulnerability Assessment Devices

CGI Architecture Diagram. Web browser takes response from web server and displays either the received file or error message.

RISKMAN QUICK REFERENCE GUIDE TO SYSTEM CONFIGURATION & TOOLS

SAP Edge Services, cloud edition Persistence Service Guide Version 1802

WebGUI Developers Guide

Numara FootPrints Changelog January 26, 2009

Andowson Chang

Pragmatic Software Co., Inc. Software Planner User s Guide

Contents. Sync Installation Guide

Unit 3: Local Fields

escuela técnica superior de ingeniería informática

CA IdentityMinder. Glossary

EnterpriseLink and LDAP

John Coggeshall Copyright 2006, Zend Technologies Inc.

Transcription:

Class Summary Following the API System Utility Application Utility Asset Tools Manipulating Resources HTML in WebGUI Users, Groups, and Privileges Messaging and Error Handling Miscellaneous Features

Following the API WebGUI API is found under the nightly builds for each version of WebGUI WebGUI is documented in POD Format NAME the name of the module DESCRIPTION what this module does SYNOPSIS public methods available METHODS a description of what each method does

System Utility WebGUI::Session Opening and Closing Sessions WebGUI::Session::open(webguiRoot,configFilename) WebGUI::Session::start(userId) WebGUI::Session::end(sessionId) WebGUI::Session::close() Updating Session Information WebGUI::Session::refreshPageInfo(assetId) WebGUI::Session::refreshSessionVars(sessionId) WebGUI::Session::refreshUserInfo(userId) WebGUI::Session::convertVisitorToUser(sessionId,userId) Dealing with Session Scratch What is Session Scratch? WebGUI::Session::setScratch(name,value) WebGUI::Session::deleteScratch(name); WebGUI::Session::deleteAllScratch(name);

System Utility (Cont) Admin Utilities WebGUI::Session::isAdminOn() WebGUI::Session::switchAdminOn() WebGUI::Session::swtichAdminOff() WebGUI::Auth WebGUI::Auth->new(authMethod,userId) WebGUI::Auth->getParams() WebGUi::Auth->saveParams() WebGUI::Auth->deleteParams() WebGUI::HTTP WebGUI::HTTP::getHeader() WebGUI::HTTP::getMimeType() WebGUI::HTTP::getStatus() WebGUI::HTTP::isRedirect() WebGUI::HTTP::setCookie(name,value[,timeToLive])

System Utility (Cont) WebGUI::HTTP::setFilename(filename,mimetype) WebGUI::HTTP::setMimeType(mimetype) WebGUI::HTTP::setNoHeader(boolean) WebGUI::HTTP::setRedirect(url)

Application Utility Asset Functionality WebGUI::Asset WebGUI::Asset->newByDynamicClass(assetId) WebGUI::Asset->newByUrl([url]) WebGUI::Asset->get([propertyName]) WebGUI::Asset->getId() WebGUI::Asset->getUrl([params]) WebGUI::Asset->getvalue(key) WebGUI::Id WebGUI::Id::generate()

WebGUI::International WebGUI::International::get(intnlId[,namespace]) WebGUI::International::getLanguage(language[,property]) WebGUI::International::getLanguages() WebGUI::International::makeUrlCompliant(url[,language]) Manipulating Resources WebGUI::DatabaseLink WebGUI::DatabaseLink::getList() WebGUI::DatabaseLink::get(databaseLinkId) WebGUI::DatabaseLink->new(databaseLinkId) WebGUI::DatabaseLink->disconnect() WebGUI::DatabaseLink->dbh()

WebGUI::SQL Returning Simple Data WebGUI::SQL->buildArray(sql [,dbh]) WebGUI::SQL->buildArrayRef(sql [,dbh]) WebGUI::SQL->buildHash(sql [,dbh]) WebGUI::SQL->buildHashRef(sql [,dbh]) WebGUI::SQL->getRow(table,key,keyValue [,dbh]) WebGUI::SQL->quickArray(sql [,dbh]) WebGUI::SQL->quickCSV(sql [,dbh]) WebGUI::SQL->quickHash(sql [,dbh]) WebGUI::SQL->quickHashRef(sql [,dbh]) WebGUI::SQL->quickTab(sql [,dbh]) Returning Lists of Data WebGUI::SQl->read(sql [,dbh,placeholders]) WebGUI::SQL->unconditionalRead(sql [,dbh,placeholders]) WebGUI::SQL->prepare(sql [,dbh])

Statement Handler Functions $sth->array () $sth->getcolumnnames() $sth->errorcode() $sth->errormessage() $sth->execute() $sth->finish() $sth->hash() $sth->hashref() Writing to the Database WebGUI::SQL->beginTransaction() WebGUI::SQL->commit ([dbh]) WebGUI::SQL->rollback ([dbh]) WebGUI::SQL->setRow (table,key,data [,dbh,id]) WebGUI::SQL->write (sql [,dbh])

Utility Methods getnextid(idname) quote(string[,dbh]) quoteandjoin(arrayref[,dbh]) WebGUI::LDAPLink WebGUI::DatebaseLink::getList() WebGUI::DatabaseLink->get(databaseLinkId) WebGUI::LDAPLink->new(ldapLinkId) WebGUI::LDAPLink->bind() WebGUI::LDAPLink->getErrorMessage([ldapErrorCode]) WebGUI::LDAPLink->unbind() WebGUI::LDAPLink->getProperty(dn,property) WebGUI::LDAPLink->recurseProperty(base,array,property [,alternatekey])

WebGUI::Storage Creating Storage WebGUI::Storage->create WebGUI::Storage->get(storageId) Streaming Files WebGUI::Storage->addFileFromFilesystem(pathToFile) WebGUI::Storage->addFileFromFormPost(formVarName) WebGUI::Storage->addFileFromHashref(filename,hashref) WebGUI::Storage->addFileFromScalar(filename,content) Retrieving Storage WebGUI::Storage->getFiles WebGUI::Storage->getFileContentsAsHashref(filename) WebGUI::Storage->getFileContentsAsScalar(filename)

Storage Information WebGUI::Storage->getErrorCount() WebGUI::Storage->getFileExtension(filename) WebGUI::Storage->getFileIconUrl(filename) WebGUI::Storage->getFileSize(filename) WebGUI::Storage->getId WebGUI::Storage->getLastError WebGUI::Storage->getPath(filename) WebGUI::Storage->getUrl(filename) Filesystem Utilities WebGUI::Storage->copy WebGUI::Storage->tar(filename) WebGUI::Storage->untar(filename) WebGUI::Storage->delete WebGUI::Storage->deleteFile(filename) WebGUI::Storage->rename(filename,newFilename) WebGUI::Storage->setPrivileges(userId,groupIdView, groupidedit)

Dealing with HTML WebGUI::Form Asset Button Checkbox Checklist Codearea Color Combo ContentType Control DatabaseLink Date DateTime DynamicField Email FieldType File FilterContent Float Group Hidden HiddenList HTMLArea Integer Interval LdapLink Password Phone Radio RadioList ReadOnly SelectList Submit Template Text TextArea TimeField Url WhatNext YesNo Zipcode

WebGUI::Form::footer() WebGUI::Form::header({action, method, extras, enctype, tableextras}) WebGUI::HTMLForm WebGUI::HTMLForm->new([action,method,extras,enctype, tableextras]) WebGUI::HTMLForm->print() WebGUI::HTMLForm->printRowsOnly() WebGUI::HTMLForm->raw(value) WebGUI::HTMLForm->trClass(class) WebGUI::FormProcessor WebGUI::FormProcessor::process(name,type [,default]) WebGUI::HTML WebGUI::HTML::cleanSegment(html); WebGUI::HTML::filter(html[,filter]);

WebGUI::HTML::format(content [,contenttype]); WebGUI::HTML::html2text(html); WebGUI::HTML::makeAbsolute(html [,baseurl]); WebGUI::HTML::processReplacements(html); WebGUI::Icon WebGUI::Icon::copyIcon(urlParameters [,pageurl]) WebGUI::Icon::cutIcon(urlParameters [,pageurl]) WebGUI::Icon::deleteIcon(urlParameters [,pageurl,confirmtext]) WebGUI::Icon::dragIcon() WebGUI::Icon::editIcon(urlParameters [,pageurl ]) WebGUI::Icon::exportIcon (urlparameters [,pageurl]) WebGUI::Icon::getToolbarOptions() - WebGUI::Icon::helpIcon(helpId [,namespace]) WebGUI::Icon::lockedIcon(urlParameters [,pageurl]) WebGUI::Icon::manageIcon(urlParameters [,pageurl])

WebGUI::Icon::moveBottomIcon(urlParameters [,pageurl]) WebGUI::Icon::moveDownIcon(urlParameters [,pageurl]) WebGUI::Icon::moveLeftIcon(urlParameters [,pageurl]) WebGUI::Icon::moveRightIcon(urlParameters [,pageurl]) WebGUI::Icon::moveTopIcon(urlParameters [,pageurl]) WebGUI::Icon::moveUpIcon(urlParameters [,pageurl]) WebGUI::Icon::pageIcon() WebGUI::Icon::pasteIcon(urlParameters [,pageurl]) WebGUI::Icon::shortcutIcon(urlParameters [,pageurl]) WebGUI::Icon::viewIcon(urlParameters [,pageurl]) WebGUI::Icon::wobjectIcon() WebGUI::Macro WebGUI::Macro::filter(html) WebGUI::Macro::getParams(parameterString) WebGUI::Macro::negate(html) WebGUI::Macro::process(html)

WebGUI::Style WebGUI::Style::generateAdditionalHeadTags() WebGUI::Style::process(content,templateId) WebGUI::Style::setLink (url,params) WebGUI::Style::setMeta(params) WebGUI::Style::setRawHeadTags(tags) WebGUI::Style::setScript(url,params) WebGUI::URL WebGUI::URL::append(url,pairs) WebGUI::URL::escape(string) WebGUI::URL::gateway(pageURL [,pairs]) WebGUI::URL::getScriptURL() WebGUI::URL::getSiteURL() WebGUI::URL::makeCompliant(string) WebGUI::URL::makeAbsolute(url [,baseurl])

WebGUI::URL::page([pairs,useSiteUrl, skippreventproxycache ]) WebGUI::URL::setSiteURL(url) WebGUI::URL::unescape(string) WebGUI::URL::urlize(string)

Users, Groups, & Privileges WebGUI::User WebGUI::User->new(userId [,overrideid]) WebGUI::User->authMethod([value]) WebGUI::User->dateCreated() WebGUI::User->karma([amount,source,description]) WebGUI::User->lastUpdated() WebGUI::User->profileField (fieldname,[value]) WebGUI::User->status([value]) WebGUI::User->username([value]) WebGUI::User->userId() WebGUI::User->addToGroups(groups [,expireoffset]) WebGUI::User->deleteFromGroups(groups) WebGUI::User->referringAffiliate ([value]) WebGUI::User->delete()

Application Utility WebGUI::Privilege WebGUI::Privilege::adminOnly() WebGUI::Privilege::insufficient() WebGUI::Privilege::noAccess() WebGUI::Privilege::notMember() WebGUI::Privilege::vitalComponent() WebGUI::Group WebGUI::Group->new([groupId]) WebGUI::Group->find(name) WebGUI::Group->autoAdd([value]) WebGUI::Group->autoDelete([value]) WebGUI::Group->dateCreated() WebGUI::Group->deleteOffset([value]) WebGUI::Group->description([value]) WebGUI::Group->expireNotify([value]) WebGUI::Group->expireNotifyMessage([value]); WebGUI::Group->expireNotifyOffset([value]); WebGUI::Group->expireOffset([value]);

WebGUI::Group->groupId() WebGUI::Group->karmaThreshold([value]); WebGUI::Group->ipFilter([value]); WebGUI::Group->isEditable([value]); WebGUI::Group->lastUpdated() WebGUI::Group->name([value]); WebGUI::Group->scratchFilter([value]); WebGUI::Group->showInForms([value]); WebGUI::Group->dbQuery([value]); WebGUI::Group->databaseLinkId([value]) WebGUI::Group->dbCacheTimeout([value]) WebGUI::Group->ldapGroup([value]) WebGUI::Group->ldapGroupProperty([value]) WebGUI::Group->ldapRecursiveProperty([value]) WebGUI::Group->addGroups(groups) WebGUI::Group->addUsers(users) WebGUI::Group->deleteGroups(groups) WebGUI::Group->deleteUsers(users) WebGUI::Group->delete()

WebGUI::Grouping WebGUI::Grouping::addGroupsToGroups(groups,toGroups) WebGUI::Grouping::addUsersToGroups(users,groups [,expireoffset]) WebGUI::Grouping::deleteGroupsFromGroups (groups,fromgroups) WebGUI::Grouping::deleteUsersFromGroups(users,groups) WebGUI::Grouping::getGroupsForGroup(groupId) WebGUI::Grouping::getGroupsForUser(userId [,withoutexpired ]) WebGUI::Grouping::getGroupsInGroup(groupId [,recursive]) WebGUI::Grouping::getUsersInGroup(groupId [,recursive ]) WebGUI::Grouping::isInGroup([groupId,userId ]) WebGUI::Grouping::userGroupAdmin(userId,groupId[,value]) WebGUI::Grouping::userGroupExpireDate(userId,groupId [,epoch ])

Messaging & Error Handling WebGUI::Mail WebGUI::Mail::send (to,subject,message [,cc,from,bcc ]) WebGUI::MessageLog WebGUI::MessageLog::addEntry(userId,groupId,subject, message [,url,status,from]) WebGUI::MessageLog::addInternationalizedEntry(userId, groupid,url,internationalid [,namespace,status]) WebGUI::MessageLog::completeEntry(messageLogId) WebGUI::ErrorHandler WebGUI::ErrorHandler::audit(message) WebGUI::ErrorHandler::debug(message) WebGUI::ErrorHandler::error(message) WebGUI::ErrorHandler::fatal(message) WebGUI::ErrorHandler::getLogger()

WebGUI::ErrorHandler::getSessionVars() WebGUI::ErrorHandler::getStackTrace() WebGUI::ErrorHandler::info(message) WebGUI::ErrorHandler::security(message) WebGUI::ErrorHandler::showDebug() WebGUI::ErrorHandler::warn(message)

Miscellaneous Features WebGUI::DateTime WebGUI::DateTime::addToDate(epoch [,years,months,days]) WebGUI::DateTime::addToTime(epoch [,hours,minutes, seconds]) WebGUI::DateTime::arrayToEpochdate) WebGUI::DateTime::dayStartEnd(epoch) WebGUI::DateTime::dateToEpoch(epoch) WebGUI::DateTime::epochToArray(epoch) WebGUI::DateTime::epochToDate(epoch) WebGUI::DateTime::epochToHuman(epoch,formatString) WebGUI::DateTime::epochToSet(epoch[,withTime]) WebGUI::DateTime::getMonthName (monthinteger) WebGUI::DateTime::getDayName(dayInteger) WebGUI::DateTime::getDaysInMonth(epoch) WebGUI::DateTime::getDaysInInterval(start,end)

WebGUI::DateTime::getFirstDayInMonthPosition(epoch) WebGUI::DateTime::getSecondsFromEpoch(epoch) WebGUI::DateTime::humanToEpoch(dateString) WebGUI::DateTime::intervalToSeconds(interval,units) WebGUI::DateTime::localtime(epoch) WebGUI::DateTime::monthCount(startEpoch,endEpoch) WebGUI::DateTime::monthStartEnd(epoch) WebGUI::DateTime::secondsToInterval(seconds) WebGUI::DateTime::secondsToTime(seconds) WebGUI::DateTime::setToEpoch(setString) WebGUI::DateTime::time() WebGUI::DateTime::timeToSeconds(timeString) WebGUI::Paginator WebGUI::Paginator->new(currentURL [,paginateafter, pagenumber,formvar]) WebGUI::Paginator->setDataByArrayRef(arrayRef) WebGUI::Paginator->setDataByQuery(query [,dbh, unconditional,placeholders,dynamicpagenumberkey, dynamicpagenumbervalue])

WebGUI::Paginator->appendTemplateVars(hashRef) WebGUI::Paginator->getBar() WebGUI::Paginator->getBarAdvanced() WebGUI::Paginator->getBarSimple() WebGUI::Paginator->getBarTraditional() WebGUi::Paginator->getColumnNames() WebGUI::Paginator->getFirstPageLink() WebGUI::Paginator->getLastPageLink() WebGUI::Paginator->getNextPageLink() WebGUI::Paginator->getNumberOfPages() WebGUI::Paginator->getPage([pageNumber]) WebGUI::Paginator->getPageData([pageNumber]) WebGUI::Paginator->getPageNumber() WebGUI::Paginator->getPageLinks([limit]) WebGUI::Paginator->getPreviousPageLink() WebGUI::Paginator->getRowCount()

WebGUI::Utility WebGUI::Utility::commify(integer) WebGUI::Utility::formatBytes(integer) WebGUI::Utility::isBetween(value,first,second) WebGUI::Utility::isIn(value, array) WebGUI::Utility::makeArrayCommaSafe(array) WebGUI::Utility::makeArrayTabSafe(array) WebGUI::Utility::makeCommaSafe(string) WebGUI::Utility::makeTabSafe(string) WebGUI::Utility::randint(low,high) WebGUI::Utility::randomizeArray(array) WebGUI::Utility::randomizeHash(hashRef) WebGUI::Utility::round(float[,significantDigits]) WebGUI::Utility::sortHash(hash) WebGUI::Utility::sortHashDescending(hash)

Q&A As if there will be time for this!