Overview

Namespaces

  • webfilesframework
    • codegeneration
      • general
      • php
    • core
      • datastore
        • functions
          • filter
          • sorting
        • types
          • database
            • resultHandler
          • directory
          • googlecalendar
          • mail
          • remote
      • datasystem
        • database
        • file
          • format
            • media
              • image
                • handler
          • system
            • dropbox
      • datatypes
        • time
      • time
    • io
      • form
        • formItem
        • validation
        • webfile
      • request

Classes

  • MWebfile
  • MWebfileStream
  • Overview
  • Namespace
  • Class

Class MWebfile

Base class for all webfile class definitions.
On the following link you can find more information about the definition of webfiles.

Direct known subclasses

webfilesframework\core\datastore\MAbstractDatastore, webfilesframework\core\datastore\types\database\MSampleWebfile, webfilesframework\core\datastore\types\directory\MDirectoryDatastoreMetainformation, webfilesframework\core\datastore\types\googlecalendar\MEvent, webfilesframework\core\datastore\types\mail\MMail, webfilesframework\core\datastore\types\mail\MMailAccount, webfilesframework\core\datasystem\file\format\media\MYoutubeVideo, webfilesframework\core\datasystem\file\system\MFile, webfilesframework\core\time\MWeekday

Indirect known subclasses

webfilesframework\core\datastore\MAbstractCachableDatastore, webfilesframework\core\datastore\MCombinedDatastore, webfilesframework\core\datasystem\file\system\dropbox\MDropboxFile, webfilesframework\core\datasystem\file\system\MDirectory, webfilesframework\core\datastore\types\database\MDatabaseDatastore, webfilesframework\core\datastore\types\directory\MDirectoryDatastore, webfilesframework\core\datastore\types\directory\MDirectoryDatastoreWebfile, webfilesframework\core\datastore\types\googlecalendar\MGoogleCalendarDatastore, webfilesframework\core\datastore\types\mail\MImapDatastore, webfilesframework\core\datastore\types\remote\MRemoteDatastore, webfilesframework\core\datasystem\file\format\media\image\MImage, webfilesframework\core\datasystem\file\system\dropbox\MDropboxDirectory
Namespace: webfilesframework\core\datasystem\file\format
Author: Sebastian Monzel < mail@sebastianmonzel.de >
Since: 0.1.7
Located at core/datasystem/file/format/MWebfile.php
Methods summary
public string
# marshall( boolean $usePreamble = true )

Converts the current webfile into its xml representation.

Converts the current webfile into its xml representation.

Parameters

$usePreamble
sets the option of using a preamble in xml - usually used for setting the version of xml an the encoding.

Returns

string
string returns the webfile as a marshalled String.

Throws

ReflectionException
public
# unmarshall( string $data )

Converts the given xml into a webfile object.

Converts the given xml into a webfile object.

Parameters

$data
xml which represents a webfile.

Throws

webfilesframework\MWebfilesFrameworkException
ReflectionException
public static webfilesframework\core\datasystem\file\format\MWebfile
# staticUnmarshall( string $xmlAsString )

Converts the given xml-String into a new webfile object.

Converts the given xml-String into a new webfile object.

Parameters

$xmlAsString

Returns

webfilesframework\core\datasystem\file\format\MWebfile

Throws

webfilesframework\MWebfilesFrameworkException
ReflectionException
public
# presetForTemplateSearch( )

In case of using the current webfile object for making a request on a datastore (getByTemplate()) this method helps to set the defaults for making the template request.

In case of using the current webfile object for making a request on a datastore (getByTemplate()) this method helps to set the defaults for making the template request.

Throws

ReflectionException
public boolean
# matchesTemplate( webfilesframework\core\datasystem\file\format\MWebfile $template )

Parameters

$template

Returns

boolean

Throws

ReflectionException
public static boolean
# isSimpleDatatype( string $datatypeName )

returns true if attribute is a simple datatype (for example string, integer or boolean).

returns true if attribute is a simple datatype (for example string, integer or boolean).

Parameters

$datatypeName

Returns

boolean
public static boolean
# isObject( string $attributeName )

returns true if attribute is object in the other case the returnvalue is false

returns true if attribute is object in the other case the returnvalue is false

Parameters

$attributeName

Returns

boolean
public static ReflectionProperty[]
# getAttributes( boolean $simpleDatatypesOnly = false )

eturns the attributes of the actual class which are relevant for the webfile definition.

eturns the attributes of the actual class which are relevant for the webfile definition.

Parameters

$simpleDatatypesOnly

Returns

ReflectionProperty[]

Throws

ReflectionException
public static string
# getClassInformation( )

Returns a xml defined class information. It contains the classname and the given attributes.

Returns a xml defined class information. It contains the classname and the given attributes.

Returns

string
xml with information about the class

Throws

ReflectionException
public static null|string
# getDatatypeFromAttributeName( string $attributeName )

Enter description here ...

Parameters

$attributeName

Returns

null|string
public array
# getDataset( )

Transforms the actual webfile into an dataset. A dataset is represented by a key value array. The key is the attributes name. The value is the attributes value.

Transforms the actual webfile into an dataset. A dataset is represented by a key value array. The key is the attributes name. The value is the attributes value.

Returns

array

Throws

ReflectionException
public static string
# getSimplifiedAttributeName( string $p_sFieldName )

Returns database field name to a given attribute

Returns database field name to a given attribute

Parameters

$p_sFieldName

Returns

string
public
# getId( )
public
# setId( $itemId )
public
# getTime( )
public
# setTime( $time )

Parameters

$time
unix timestamp of the context time.
public
# getGeograficPosition( )
public static
# classname( )
public static webfilesframework\core\datasystem\file\format\MWebfile
# createWebfileByClassname( $classname )

Parameters

$classname

Returns

webfilesframework\core\datasystem\file\format\MWebfile

Throws

webfilesframework\MWebfilesFrameworkException
ReflectionException
Properties summary
protected integer $m_iId
# 0
public integer $m_iTime

sets the time of the main context of the given webfile. Example:
An event would have the point when it takes place. An news entry would have the creation time as context time.

sets the time of the main context of the given webfile. Example:
An event would have the point when it takes place. An news entry would have the creation time as context time.

#
API documentation generated by ApiGen