Skip to content

Release 1.3.2, Includes lots of changes

Compare
Choose a tag to compare
@thecancerus thecancerus released this 18 Dec 07:19
· 63 commits to master since this release

We have made lots of changes.

  1. Added Support for content type
  2. Support for multiple file uploads
  3. You can now parse and read PDF files
  4. Create ASYNC request based on reactphp

Parsing PDF files

	[pdf.parse file_path='/var/www/awesome.pdf' data_format='array' o.exit=t /]
	[pdf.parse file_path='/var/www/awesome.pdf' data_format='json' o.exit=t /]
	[pdf.parse file_path='/var/www/awesome.pdf' o.exit=t /]

Steps to register Content Types

  1. Register a service in Awesome Core: Services
    [services.add call_centre_def service_label='Call Centre Definition' post_type='call_centre_def' desc='Call Centre Def' service=yes/]

  2. Create a module 'Main' in the above created service. Define your Content Type here.
    [content_types.add ccall_centre/]
    As a thumb rule, you should start the name of your Content Type with a 'c'

  3. Make an entry of the Content Type in Awesome Core: init
    [call_centre_def.main/]

Examples of using new Async Shortcodes
Using tickets

[loop.@row template.reply.rows c.not_empty='template.reply.rows']
	[env.get @row.item.service o.set='template.queue.{@row.index}.service' /]
	[env.get @row.item o.merge_with='template.queue.{@row.index}.data.row' /]
	[env.get app.user o.merge_with='template.queue.{@row.index}.data.user' /]
	[module.get extras o.merge_with='template.queue.{@row.index}.data.extras' /]
[/loop.@row]
[async_tickets.run tickets={template.queue} app='s' payload_size='2' c.not_empty='template.reply.rows'/]

using custom URLS

[do.@test]
   [str.create main='{url.site}xhr/query.php' o.set='@test.queue.{@i.index}.url' /]
   [content.run o.set='@test.queue.{@i.index}.data.sql']
     INSERT IGNORE INTO t_data (object_id,id)
          select object_id,id from data_changes.loan_data_[template.activity /]
          where id>[template.job_last_id.scalar /] order by id limit 200;
	[/content.run]	  
[/do.@test]
[async_urls.run tickets={@test.queue} /]