ePages 6.17.39 - DE_EPAGES/Content/API/Table/ShortUrlRedirection.pm

Package DE_EPAGES::Content::API::Table::ShortUrlRedirection

interface for table ShortUrlRedirection

@EXPORT_OK
InsertShortUrlRedirection
UpdateShortUrlRedirection
DeleteShortUrlRedirection
GetAllPKeyShortUrlRedirections
GetAllInfoShortUrlRedirections
GetInfoShortUrlRedirection
ExistsShortUrlRedirection
GetPKeyShortUrlRedirectionBySiteID
GetInfoShortUrlRedirectionBySiteID
ExistsShortUrlRedirectionBySiteID
GetPKeyShortUrlRedirectionsBySiteID
GetInfoShortUrlRedirectionsBySiteID
GetPKeyShortUrlRedirectionsByContentObjectID
GetInfoShortUrlRedirectionsByContentObjectID
GetPKeyShortUrlRedirectionsByLanguageID
GetInfoShortUrlRedirectionsByLanguageID

Functions

DeleteShortUrlRedirection
ExistsShortUrlRedirection
ExistsShortUrlRedirectionBySiteID
GetAllInfoShortUrlRedirections
GetAllPKeyShortUrlRedirections
GetInfoShortUrlRedirection
GetInfoShortUrlRedirectionBySiteID
GetInfoShortUrlRedirectionsByContentObjectID
GetInfoShortUrlRedirectionsByLanguageID
GetInfoShortUrlRedirectionsBySiteID
GetPKeyShortUrlRedirectionBySiteID
GetPKeyShortUrlRedirectionsByContentObjectID
GetPKeyShortUrlRedirectionsByLanguageID
GetPKeyShortUrlRedirectionsBySiteID
InsertShortUrlRedirection
OnDeleteLanguage
OnDeleteSite
UpdateShortUrlRedirection

DeleteShortUrlRedirection

Deletes a(n) ShortUrlRedirection.

Syntax
DeleteShortUrlRedirection($ShortUrlRedirectionID);
DeleteShortUrlRedirection($hShortUrlRedirection); # if $hShortUrlRedirection includes ShortUrlRedirectionID
Input
$ShortUrlRedirectionID (int)
shorturlredirection id (primary key)

ExistsShortUrlRedirection

Returns true if the ShortUrlRedirection exists.

Syntax
$exists = ExistsShortUrlRedirection($ShortUrlRedirectionID);
Input
$ShortUrlRedirectionID (int)
shorturlredirection id (primary key)
Return
$exists (boolean)
1/0 the ShortUrlRedirection exists (yes/no)

ExistsShortUrlRedirectionBySiteID

Returns true if a ShortUrlRedirection by alternate keys SiteID and Uri exists.

Syntax
$ShortUrlRedirectionID = ExistsShortUrlRedirectionBySiteID($SiteID, $Uri);
Input
$SiteID (int)
site id
$Uri (varchar(255))
short uri
Return
$exists (boolean)
1/0 the u_shorturlredirection_site_uri exists (yes/no)

GetAllInfoShortUrlRedirections

Returns all objects of ShortUrlRedirection.

Syntax
$ahShortUrlRedirections = GetAllInfoShortUrlRedirections();
Return
$ahShortUrlRedirections (reference to array of hashes)
with following keys:
  • ShortUrlRedirectionID - shorturlredirection id (primary key)- int
  • SiteID - site id - int
  • LanguageID - language id - int
  • ContentObjectID - object id - int
  • Uri - short uri - varchar(255)

GetAllPKeyShortUrlRedirections

Returns all ShortUrlRedirection identifiers.

Syntax
$aShortUrlRedirectionIDs = GetAllPKeyShortUrlRedirections();
Return
$aShortUrlRedirectionIDs (reference to array of int)
shorturlredirection id

GetInfoShortUrlRedirection

Returns the ShortUrlRedirection by identifier.

Syntax
$hShortUrlRedirection = GetInfoShortUrlRedirection($ShortUrlRedirectionID);
Input
$ShortUrlRedirectionID (int)
shorturlredirection id (primary key)
Return
$hShortUrlRedirection (reference to hash)
with following keys:
  • ShortUrlRedirectionID - shorturlredirection id (primary key)- int
  • SiteID - site id - int
  • LanguageID - language id - int
  • ContentObjectID - object id - int
  • Uri - short uri - varchar(255)

GetInfoShortUrlRedirectionBySiteID

Returns the object of ShortUrlRedirection by alternate keys SiteID and Uri.

Syntax
$hShortUrlRedirection = GetInfoShortUrlRedirectionBySiteID($SiteID, $Uri);
Input
$SiteID (int)
site id
$Uri (varchar(255))
short uri
Return
$hShortUrlRedirection (reference to hash)
with following keys:
  • ShortUrlRedirectionID - shorturlredirection id (primary key)- int
  • SiteID - site id - int
  • LanguageID - language id - int
  • ContentObjectID - object id - int
  • Uri - short uri - varchar(255)

GetInfoShortUrlRedirectionsByContentObjectID

Returns objects of ShortUrlRedirection by alternate keys ContentObjectID and LanguageID.

Syntax
$ahShortUrlRedirections = GetInfoShortUrlRedirectionsByContentObjectID($ContentObjectID, $LanguageID);
Input
$ContentObjectID (int)
object id
$LanguageID (int)
language id (optional)
Return
$ahShortUrlRedirections (reference to array of hashes)
with following keys:
  • ShortUrlRedirectionID - shorturlredirection id (primary key)- int
  • SiteID - site id - int
  • LanguageID - language id - int
  • ContentObjectID - object id - int
  • Uri - short uri - varchar(255)

GetInfoShortUrlRedirectionsByLanguageID

Returns objects of ShortUrlRedirection by alternate key LanguageID.

Syntax
$ahShortUrlRedirections = GetInfoShortUrlRedirectionsByLanguageID($LanguageID);
Input
$LanguageID (int)
language id
Return
$ahShortUrlRedirections (reference to array of hashes)
with following keys:
  • ShortUrlRedirectionID - shorturlredirection id (primary key)- int
  • SiteID - site id - int
  • LanguageID - language id - int
  • ContentObjectID - object id - int
  • Uri - short uri - varchar(255)

GetInfoShortUrlRedirectionsBySiteID

Returns objects of ShortUrlRedirection by alternate keys SiteID and Uri.

Syntax
$ahShortUrlRedirections = GetInfoShortUrlRedirectionsBySiteID($SiteID, $Uri);
Input
$SiteID (int)
site id
$Uri (varchar(255))
short uri (optional)
Return
$ahShortUrlRedirections (reference to array of hashes)
with following keys:
  • ShortUrlRedirectionID - shorturlredirection id (primary key)- int
  • SiteID - site id - int
  • LanguageID - language id - int
  • ContentObjectID - object id - int
  • Uri - short uri - varchar(255)

GetPKeyShortUrlRedirectionBySiteID

Returns primary key of ShortUrlRedirection by alternate keys SiteID and Uri.

Syntax
$ShortUrlRedirectionID = GetPKeyShortUrlRedirectionBySiteID($SiteID, $Uri);
Input
$SiteID (int)
site id
$Uri (varchar(255))
short uri
Return
$ShortUrlRedirectionID (int)
shorturlredirection id (primary key)

GetPKeyShortUrlRedirectionsByContentObjectID

Returns primary keys of ShortUrlRedirection by alternate keys ContentObjectID and LanguageID.

Syntax
$aKeys = GetPKeyShortUrlRedirectionsByContentObjectID($ContentObjectID, $LanguageID);
Input
$ContentObjectID (int)
object id
$LanguageID (int)
language id (optional)
Return
$aKeys (reference to array of int)
shorturlredirection id (primary key)

GetPKeyShortUrlRedirectionsByLanguageID

Returns primary keys of ShortUrlRedirection by alternate key LanguageID.

Syntax
$aKeys = GetPKeyShortUrlRedirectionsByLanguageID($LanguageID);
Input
$LanguageID (int)
language id
Return
$aKeys (reference to array of int)
shorturlredirection id (primary key)

GetPKeyShortUrlRedirectionsBySiteID

Returns primary keys of ShortUrlRedirection by alternate keys SiteID and Uri.

Syntax
$aKeys = GetPKeyShortUrlRedirectionsBySiteID($SiteID, $Uri);
Input
$SiteID (int)
site id
$Uri (varchar(255))
short uri (optional)
Return
$aKeys (reference to array of int)
shorturlredirection id (primary key)

InsertShortUrlRedirection

Creates an entry of ShortUrlRedirection.

Syntax
$ShortUrlRedirectionID = InsertShortUrlRedirection($hShortUrlRedirection);
Input
$hShortUrlRedirection (reference to hash)
with following keys:
  • ShortUrlRedirectionID - shorturlredirection id (primary key)(optional)- int
  • SiteID - site id - int
  • LanguageID - language id - int
  • ContentObjectID - object id - int
  • Uri - short uri - varchar(255)
Return
$ShortUrlRedirectionID (int)
shorturlredirection id (primary key)

OnDeleteLanguage

Deletes ShortUrlRedirection of this model when a(n) Language is deleted.

Syntax
OnDeleteLanguage($hParams);
Input
$hParams (ref.hash.*)
primary key of object Language, key is
  • LanguageID

OnDeleteSite

Deletes ShortUrlRedirection of this model when a(n) Site is deleted.

Syntax
OnDeleteSite($hParams);
Input
$hParams (ref.hash.*)
primary key of object Site, key is
  • SiteID

UpdateShortUrlRedirection

Updates a(n) ShortUrlRedirection if any element was changed.

Syntax
UpdateShortUrlRedirection($ShortUrlRedirectionID, $hShortUrlRedirection);
UpdateShortUrlRedirection($hShortUrlRedirection); # if $hShortUrlRedirection includes ShortUrlRedirectionID
Input
$ShortUrlRedirectionID (int)
shorturlredirection id (primary key)
$hShortUrlRedirection (reference to hash)
with following keys:
  • SiteID - site id - int
  • LanguageID - language id - int
  • ContentObjectID - object id - int
  • Uri - short uri - varchar(255)