function ZencoderJob::update_attributes in Video 7
2 calls to ZencoderJob::update_attributes()
- ZencoderJob::create in modules/
video_zencoder/ includes/ Zencoder.php - ZencoderJob::ZencoderJob in modules/
video_zencoder/ includes/ Zencoder.php
File
- modules/
video_zencoder/ includes/ Zencoder.php, line 68
Class
Code
function update_attributes($attributes = array()) {
foreach ($attributes as $attr_name => $attr_value) {
// Create output file objects
if ($attr_name == "outputs" && is_array($attr_value)) {
$this
->create_outputs($attr_value);
}
elseif (!function_exists($this->{$attr_name})) {
$this->{$attr_name} = $attr_value;
}
}
}