Skip to content

Commit

Permalink
unacms#4716 Alerts(hooks) docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Trofimov committed Jun 8, 2024
1 parent 8a964cf commit f429293
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 7 additions & 7 deletions inc/classes/BxDolTranscoder.php
Original file line number Diff line number Diff line change
Expand Up @@ -492,17 +492,17 @@ public function transcode ($mixedHandler, $iProfileId = 0)

/**
* @hooks
* @hookdef hook-system-transcode 'system', 'transcode' - hook on cancel vote
* @hookdef hook-system-transcode 'system', 'transcode' - hook before file is transcoded
* - $unit_name - equals `system`
* - $action - equals `transcode`
* - $object_id - file handler
* - $sender_id - profile_id for vote's author
* - $sender_id - equals `false`
* - $extra_params - array of additional params with the following array keys:
* - `transcoder_object` - [array] transcoder object properties
* - `object` - [object] transcoder object
* - `db` - [object] database object
* - `file_path` - [string] file path
* - `ret` - [bool] return
* - `ret` - [bool] by ref, not used
* @hook @ref hook-system-transcode
*/
bx_alert('system', 'transcode', $mixedHandler, false, array(
Expand Down Expand Up @@ -540,19 +540,19 @@ public function transcode ($mixedHandler, $iProfileId = 0)

/**
* @hooks
* @hookdef hook-system-transcoded 'system', 'transcoded' - hook on cancel vote
* @hookdef hook-system-transcoded 'system', 'transcoded' - hook after file is transcoded
* - $unit_name - equals `system`
* - $action - equals `transcoded`
* - $object_id - file handler
* - $sender_id - profile_id for vote's author
* - $sender_id - equals `false`
* - $extra_params - array of additional params with the following array keys:
* - `object` - [object] transcoder object
* - `ret` - [bool] reported object id
* - `ret` - [bool] by ref, override return value
* @hook @ref hook-system-transcoded
*/
bx_alert($this->_aObject['object'], 'transcoded', $mixedHandler, false, array(
'object' => $this,
'ret' => $bRet,
'ret' => &$bRet,
));

return $bRet;
Expand Down
2 changes: 2 additions & 0 deletions scripts/docker-compose/php.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ post_max_size=200M
html_errors = On
error_prepend_string = "<pre style='white-space: pre-line'>"
error_append_string = "</pre>"
max_input_vars = 5000
error_log = /var/log/php.log

[opcache]
opcache.enable=1
Expand Down

0 comments on commit f429293

Please sign in to comment.