Overview

Packages

  • CONTENIDO
  • Core
    • Authentication
    • Backend
    • Cache
    • CEC
    • Chain
    • ContentType
    • Database
    • Debug
    • Exception
    • Frontend
      • Search
      • URI
      • Util
    • GenericDB
      • Model
    • GUI
      • HTML
    • I18N
    • LayoutHandler
    • Log
    • Security
    • Session
    • Util
    • Validation
    • Versioning
    • XML
  • Module
    • ContentRssCreator
    • ContentSitemapHtml
    • ContentSitemapXml
    • ContentUserForum
    • NavigationTop
    • ScriptCookieDirective
  • mpAutoloaderClassMap
  • None
  • Plugin
    • ContentAllocation
    • CronjobOverview
    • FormAssistant
    • FrontendLogic
    • FrontendUsers
    • Linkchecker
    • ModRewrite
    • Newsletter
    • Repository
      • FrontendNavigation
      • KeywordDensity
    • SearchSolr
    • SmartyWrapper
    • UrlShortener
    • UserForum
    • Workflow
  • PluginManager
  • Setup
    • Form
    • GUI
    • Helper
      • Environment
      • Filesystem
      • MySQL
      • PHP
    • UpgradeJob
  • Smarty
    • Cacher
    • Compiler
    • Config
    • Debug
    • PluginsBlock
    • PluginsFilter
    • PluginsFunction
    • PluginsInternal
    • PluginsModifier
    • PluginsModifierCompiler
    • PluginsShared
    • Security
    • Template
    • TemplateResources
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

Classes

  • cApiShortUrl
  • cApiShortUrlCollection

Functions

  • piUsAfterLoadPlugins
  • piUsConSaveArtAfter
  • piUsEditFormAdditionalRows
  • piUsGetErrorMessage
  • Overview
  • Package
  • Class
  • Todo
  • Download

Class cApiShortUrlCollection

Plugin Manager API classes.

cGenericDb
Extended by cItemBaseAbstract
Extended by ItemCollection
Extended by cApiShortUrlCollection
Package: Plugin\UrlShortener
Copyright: four for business AG <www.4fb.de>
License: http://www.contenido.org/license/LIZENZ.txt
Author: Ingo van Peeren
Located at plugins/url_shortener/classes/class.url_shortener.shorturl.php
Methods summary
public
# __construct( )

Throws

cInvalidArgumentException
If table name or primary key is not set

Overrides

ItemCollection::__construct()
public Ambigous
# create( string $shorturl, integer $idart = NULL, integer $idlang = NULL, integer $idclient = NULL )

Parameters

$shorturl
$idart
$idlang
$idclient

Returns

Ambigous
<Item, object>
public integer
# isValidShortUrl( string $shorturl )

Checks whether the given short URL is valid with the following criteria: - given url is not a directory in the client folder - given url respects minimum length - given url contains only valid characters - given url is not an article or category alias

Checks whether the given short URL is valid with the following criteria: - given url is not a directory in the client folder - given url respects minimum length - given url contains only valid characters - given url is not an article or category alias

Parameters

$shorturl
the short URL to check

Returns

integer

boolean error code if the given shorturl is invalid or true if it is valid

Methods inherited from ItemCollection
_buildGroupWhereStatements(), _buildWhereStatements(), _delete(), _deleteMultiple(), _fetchJoinTables(), _findReverseJoinPartner(), _initializeDriver(), _recursiveStructuredFetch(), _resolveLinks(), _setItemClass(), _setJoinPartner(), addResultField(), copyItem(), count(), createNewItem(), delete(), deleteBy(), deleteByWhereClause(), deleteWhere(), deleteWhereGroup(), exists(), fetchArray(), fetchById(), fetchObject(), fetchTable(), flexSelect(), getAllIds(), getFieldsByWhereClause(), getIdsByWhereClause(), link(), loadItem(), next(), query(), queryAndFetchStructured(), removeResultField(), resetQuery(), select(), setEncoding(), setGroupCondition(), setInnerGroupCondition(), setLimit(), setOrder(), setWhere(), setWhereGroup()
Methods inherited from cItemBaseAbstract
_getPropertiesCollectionInstance(), _getSecondDBInstance(), _resetItem(), escape()
Methods inherited from cGenericDb
_executeCallbacks(), register(), unregister()
Constants summary
integer ERR_IS_CLIENT_FOLDER
# 1
integer ERR_TOO_SHORT
# 2
integer ERR_INVALID_CHARS
# 3
integer ERR_IS_ARTICLE_ALIAS
# 4
integer ERR_IS_CATEGORY_ALIAS
# 5
integer ERR_ALREADY_EXISTS
# 6
Constants inherited from cGenericDb
CREATE_BEFORE, CREATE_FAILURE, CREATE_SUCCESS, DELETE_BEFORE, DELETE_FAILURE, DELETE_SUCCESS, STORE_BEFORE, STORE_FAILURE, STORE_SUCCESS
Properties inherited from ItemCollection
$_JoinPartners, $_aOperators, $_bAllMode, $_collectionCache, $_driver, $_encoding, $_forwardJoinPartners, $_groupConditions, $_innerGroupConditions, $_itemClass, $_itemClassInstance, $_iteratorItem, $_lastSQL, $_limitCount, $_limitStart, $_links, $_order, $_resultFields, $_where, $_whereRestriction, $objects
Properties inherited from cItemBaseAbstract
$_className, $_oCache, $_settings, $db, $lasterror, $primaryKey, $properties, $secondDb, $table, $virgin
CMS CONTENIDO 4.9.7 API documentation generated by ApiGen