本文整理汇总了PHP中Cloudinary::build_eager方法的典型用法代码示例。如果您正苦于以下问题:PHP Cloudinary::build_eager方法的具体用法?PHP Cloudinary::build_eager怎么用?PHP Cloudinary::build_eager使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Cloudinary
的用法示例。
在下文中一共展示了Cloudinary::build_eager方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: build_archive_params
public static function build_archive_params(&$options)
{
$params = array("timestamp" => time(), "type" => \Cloudinary::option_get($options, "type"), "mode" => \Cloudinary::option_get($options, "mode"), "target_format" => \Cloudinary::option_get($options, "target_format"), "target_public_id" => \Cloudinary::option_get($options, "target_public_id"), "flatten_folders" => \Cloudinary::option_get($options, "flatten_folders"), "flatten_transformations" => \Cloudinary::option_get($options, "flatten_transformations"), "use_original_filename" => \Cloudinary::option_get($options, "use_original_filename"), "async" => \Cloudinary::option_get($options, "async"), "phash" => \Cloudinary::option_get($options, "phash"), "notification_url" => \Cloudinary::option_get($options, "notification_url"), "target_tags" => \Cloudinary::build_array(\Cloudinary::option_get($options, "target_tags")), "keep_derived" => \Cloudinary::option_get($options, "keep_derived"), "tags" => \Cloudinary::build_array(\Cloudinary::option_get($options, "tags")), "public_ids" => \Cloudinary::build_array(\Cloudinary::option_get($options, "public_ids")), "prefixes" => \Cloudinary::build_array(\Cloudinary::option_get($options, "prefixes")), "transformations" => \Cloudinary::build_eager(\Cloudinary::option_get($options, "transformations")));
array_walk($params, function (&$value, $key) {
$value = is_bool($value) ? $value ? "1" : "0" : $value;
});
return array_filter($params, function ($v) {
return !is_null($v) && $v !== "";
});
}
示例2: build_eager
protected static function build_eager($transformations)
{
return \Cloudinary::build_eager($transformations);
}