Пример #1
0
 public static function import_icon($inbound, $outbound)
 {
     Util::keys_required($inbound, array('id', 'icon'));
     $stack = new Stack(Util::safe_stack_id($inbound['id']), Util::optional($inbound, 'auth_hash'));
     $outbound['icon_id'] = $stack->stack_import_icon($inbound['icon']);
     return $outbound;
 }
Пример #2
0
 public static function import_icon($inbound, $outbound)
 {
     $stack = new Stack(Util::safe_stack_id($inbound['stack_id']));
     $outbound['id'] = $stack->stack_import_icon($inbound['id'], $inbound['name'], $inbound['data']);
     return $outbound;
 }