示例#1
0
 /**
  * @see parent::getProps()
  */
 function getProps()
 {
     $props = parent::getProps();
     $props["file_date"] = "dateTime notNull";
     $props["file_real_filename"] = "str notNull show|0";
     $props["file_type"] = "str show|0";
     $props["file_name"] = "str notNull show|0";
     $props["rotation"] = "num default|0 show|0";
     $props["language"] = "enum list|en-EN|es-ES|fr-CH|fr-FR default|fr-FR show|0";
     $props["compression"] = "str";
     // Form Fields
     $props["_sub_dir"] = "str";
     $props["_absolute_dir"] = "str";
     $props["_file_path"] = "str";
     $props["_old_file_path"] = "str";
     // Behavior fields
     $props["_rotate"] = "enum list|left|right";
     $props["_rename"] = "str";
     $props["_merge_files"] = "bool";
     return $props;
 }
 /**
  * @see parent::getProps()
  */
 function getProps()
 {
     $props = parent::getProps();
     $props["user_id"] = "ref class|CMediusers purgeable show|0";
     $props["function_id"] = "ref class|CFunctions purgeable";
     $props["group_id"] = "ref class|CGroups purgeable";
     $props["object_id"] = "ref class|CMbObject meta|object_class purgeable show|1";
     $props["content_id"] = "ref class|CContentHTML show|0";
     $props["object_class"] = "str notNull class show|0";
     $props["nom"] = "str notNull show|0 seekable";
     $props["font"] = "enum list|arial|calibri|comic|courier|georgia|lucida|symbol|" . "tahoma|times|trebuchet|verdana|zapfdingbats show|0";
     $props["size"] = "enum list|xx-small|x-small|small|medium|large|x-large|xx-large|" . "8pt|9pt|10pt|11pt|12pt|14pt|16pt|18pt|20pt|22pt|24pt|26pt|28pt|36pt|48pt|72pt show|0";
     $props["type"] = "enum list|header|preface|body|ending|footer default|body show|0";
     $props["factory"] = "enum list|CDomPDFConverter|CWkHtmlToPDFConverter|CPrinceXMLConverter|none show|0";
     $props["language"] = "enum list|en-EN|es-ES|fr-CH|fr-FR default|fr-FR show|0";
     $props["_list_classes"] = "enum list|" . implode("|", array_keys(CCompteRendu::getTemplatedClasses()));
     $props["_is_locked"] = "bool default|0";
     $props["locker_id"] = "ref class|CMediusers purgeable";
     $props["header_id"] = "ref class|CCompteRendu show|0";
     $props["footer_id"] = "ref class|CCompteRendu show|0";
     $props["preface_id"] = "ref class|CCompteRendu show|0";
     $props["ending_id"] = "ref class|CCompteRendu show|0";
     $props["modele_id"] = "ref class|CCompteRendu nullify show|0";
     $props["height"] = "float min|0 show|0";
     $props["margin_top"] = "float notNull min|0 default|2 show|0";
     $props["margin_bottom"] = "float notNull min|0 default|2 show|0";
     $props["margin_left"] = "float notNull min|0 default|2 show|0";
     $props["margin_right"] = "float notNull min|0 default|2 show|0";
     $props["page_height"] = "float notNull min|1 default|29.7 show|0";
     $props["page_width"] = "float notNull min|1 default|21 show|0";
     $props["valide"] = "bool show|0";
     $props["fast_edit"] = "bool default|0 show|0";
     $props["fast_edit_pdf"] = "bool default|0 show|0";
     $props["date_print"] = "dateTime show|0";
     $props["purge_field"] = "str show|0";
     $props["purgeable"] = "bool default|0 show|0";
     $props["fields_missing"] = "num default|0 show|0";
     $props["version"] = "num default|0 show|0";
     $props["_owner"] = "enum list|prat|func|etab";
     $props["_orientation"] = "enum list|portrait|landscape";
     $props["_page_format"] = "enum list|" . implode("|", array_keys(self::$_page_formats));
     $props["_source"] = "html helped|_list_classes";
     $props["_entire_doc"] = "html";
     $props["_ids_corres"] = "str";
     $props["creation_date"] = "dateTime";
     $props["_file_size"] = "str show|0";
     return $props;
 }