XpressEngine Core  1.11.2
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
ttimport Class Reference

Public Member Functions

 importModule ($key, $cur, $index_file, $unit_count, $module_srl, $guestbook_module_srl, $user_id, $module_name=null)
 
 insertTextyleGuestbookItem ($val, $module_srl, $member_info, $textyle_guestbook_srl, $parent_srl=0, $author_xml_id=null)
 
 importAttaches ($fp, $module_srl, $upload_target_srl, &$files, $buff)
 
 getTmpFilename ()
 
 saveTemporaryFile ($fp, $buff)
 
 _replaceTTAttach ($matches)
 
 _replaceTTMovie ($matches)
 
 insertComment ($val, $module_srl, $document_srl, $member_info, $parent_srl=0, $author_xml_id)
 
 arrangeCategory ($obj, &$category, &$idx, $parent=0)
 

Public Attributes

 $oXmlParser = null
 

Detailed Description

Definition at line 14 of file ttimport.class.php.

Member Function Documentation

ttimport::_replaceTTAttach (   $matches)

Replace img tag in the ttxml

Parameters
array$matches
Returns
string

Definition at line 572 of file ttimport.class.php.

ttimport::_replaceTTMovie (   $matches)

Convert the video file

Returns
string

Definition at line 603 of file ttimport.class.php.

ttimport::arrangeCategory (   $obj,
$category,
$idx,
  $parent = 0 
)

List category

Parameters
object$obj
array$category
int$idx
int$parent
Returns
void

Definition at line 711 of file ttimport.class.php.

ttimport::getTmpFilename ( )

Return a filename to temporarily use

Returns
string

Definition at line 532 of file ttimport.class.php.

ttimport::importAttaches (   $fp,
  $module_srl,
  $upload_target_srl,
$files,
  $buff 
)

Attachment

Parameters
resource$fp
int$module_srl
int$upload_target_srl
array$files
string$buff
Returns
bool

Definition at line 455 of file ttimport.class.php.

ttimport::importModule (   $key,
  $cur,
  $index_file,
  $unit_count,
  $module_srl,
  $guestbook_module_srl,
  $user_id,
  $module_name = null 
)

Import data in module.xml format

Parameters
int$key
int$cur
string$index_file
int$unit_count
int$module_srl
int$guestbook_module_srl
string$user_id
string$module_name
Returns
int

Definition at line 34 of file ttimport.class.php.

ttimport::insertComment (   $val,
  $module_srl,
  $document_srl,
  $member_info,
  $parent_srl = 0,
  $author_xml_id 
)

Comment

Parameters
object$val
int$module_srl
int$document_srl
object$member_info
int$parent_srl
int$author_xml_id
Returns
bool|int|object

Definition at line 628 of file ttimport.class.php.

ttimport::insertTextyleGuestbookItem (   $val,
  $module_srl,
  $member_info,
  $textyle_guestbook_srl,
  $parent_srl = 0,
  $author_xml_id = null 
)

Insert textyle guest book

Parameters
object$val
int$module_srl
object$member_info
int$textyle_guestbook_srl
int$parent_srl
int$author_xml_id
Returns
int|bool

Definition at line 396 of file ttimport.class.php.

ttimport::saveTemporaryFile (   $fp,
  $buff 
)

Read buff until key value comes out from a specific file point

Parameters
resource$fp
string$buff
Returns
string

Definition at line 547 of file ttimport.class.php.

Member Data Documentation

ttimport::$oXmlParser = null

Definition at line 20 of file ttimport.class.php.


The documentation for this class was generated from the following file: