HaruDoc::setInfoDateAttr
(PECL haru >= 0.0.1)
HaruDoc::setInfoDateAttr — Set the datetime info attributes of the document
Description
$type
, int $year
, int $month
, int $day
, int $hour
, int $min
, int $sec
, string $ind
, int $off_hour
, int $off_min
)Sets the datetime info attributes of the document.
Parameters
-
type
-
The type of the attribute. Can be one of the following:
-
HaruDoc::INFO_CREATION_DATE
-
HaruDoc::INFO_MOD_DATE
-
-
year
-
-
month
-
Between 1 and 12.
-
day
-
Between 1 and 31, 30, 29 or 28 (different for each month).
-
hour
-
Between 0 and 23.
-
min
-
Between 0 and 59.
-
sec
-
Between 0 and 59.
-
ind
-
The timezone relation to UTC, can be "", " ", "+", "-" and "Z".
-
off_hour
-
If
ind
is not " " or "", values between 0 and 23 are valid. Otherwise, this parameter is ignored. -
off_min
-
If
ind
is not " " or "", values between 0 and 59 are valid. Otherwise, this parameter is ignored.
Return Values
Returns TRUE
on success.
Errors/Exceptions
Throws a HaruException on error.
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Генерация нетекстовых MIME форматов
- Haru PDF
- Функция HaruDoc::addPage() - Add new page to the document
- Функция HaruDoc::addPageLabel() - Set the numbering style for the specified range of pages
- Функция HaruDoc::__construct() - Construct new HaruDoc instance
- Функция HaruDoc::createOutline() - Create a HaruOutline instance
- Функция HaruDoc::getCurrentEncoder() - Get HaruEncoder currently used in the document
- Функция HaruDoc::getCurrentPage() - Return current page of the document
- Функция HaruDoc::getEncoder() - Get HaruEncoder instance for the specified encoding
- Функция HaruDoc::getFont() - Get HaruFont instance
- Функция HaruDoc::getInfoAttr() - Get current value of the specified document attribute
- Функция HaruDoc::getPageLayout() - Get current page layout
- Функция HaruDoc::getPageMode() - Get current page mode
- Функция HaruDoc::getStreamSize() - Get the size of the temporary stream
- Функция HaruDoc::insertPage() - Insert new page just before the specified page
- Функция HaruDoc::loadJPEG() - Load a JPEG image
- Функция HaruDoc::loadPNG() - Load PNG image and return HaruImage instance
- Функция HaruDoc::loadRaw() - Load a RAW image
- Функция HaruDoc::loadTTC() - Load the font with the specified index from TTC file
- Функция HaruDoc::loadTTF() - Load TTF font file
- Функция HaruDoc::loadType1() - Load Type1 font
- Функция HaruDoc::output() - Write the document data to the output buffer
- Функция HaruDoc::readFromStream() - Read data from the temporary stream
- Функция HaruDoc::resetError() - Reset error state of the document handle
- Функция HaruDoc::resetStream() - Rewind the temporary stream
- Функция HaruDoc::save() - Save the document into the specified file
- Функция HaruDoc::saveToStream() - Save the document into a temporary stream
- Функция HaruDoc::setCompressionMode() - Set compression mode for the document
- Функция HaruDoc::setCurrentEncoder() - Set the current encoder for the document
- Функция HaruDoc::setEncryptionMode() - Set encryption mode for the document
- Функция HaruDoc::setInfoAttr() - Set the info attribute of the document
- Функция HaruDoc::setInfoDateAttr() - Set the datetime info attributes of the document
- Функция HaruDoc::setOpenAction() - Define which page is shown when the document is opened
- Функция HaruDoc::setPageLayout() - Set how pages should be displayed
- Функция HaruDoc::setPageMode() - Set how the document should be displayed
- Функция HaruDoc::setPagesConfiguration() - Set the number of pages per set of pages
- Функция HaruDoc::setPassword() - Set owner and user passwords for the document
- Функция HaruDoc::setPermission() - Set permissions for the document
- Функция HaruDoc::useCNSEncodings() - Enable Chinese simplified encodings
- Функция HaruDoc::useCNSFonts() - Enable builtin Chinese simplified fonts
- Функция HaruDoc::useCNTEncodings() - Enable Chinese traditional encodings
- Функция HaruDoc::useCNTFonts() - Enable builtin Chinese traditional fonts
- Функция HaruDoc::useJPEncodings() - Enable Japanese encodings
- Функция HaruDoc::useJPFonts() - Enable builtin Japanese fonts
- Функция HaruDoc::useKREncodings() - Enable Korean encodings
- Функция HaruDoc::useKRFonts() - Enable builtin Korean fonts
Коментарии
404 Not Found