2017 © Pedro Peláez
 

symfony1-plugin dm-common-helpers-plugin

dmCommonHelpersPlugin - The collection of common helpers and libraries for Diem Extended

image

runopencode/dm-common-helpers-plugin

dmCommonHelpersPlugin - The collection of common helpers and libraries for Diem Extended

  • Sunday, December 9, 2012
  • by TheCelavi
  • Repository
  • 2 Watchers
  • 1 Stars
  • 0 Installations
  • PHP
  • 5 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

dmCommonHelpersPlugin for Diem Extended

Author: TheCelavi, Grouchy Version: 0.0.2 Stability: Stable
Date: December 9th, 2012
Courtesy of Run Open Code
License: Free for all, (*1)

dmCommonHelpersPlugin for Diem Extended is collection of common:, (*2)

  • template helpers
  • helpers
  • classes and libraries

that are used in various plugins provided by RunOpenCode, and, of course, they can be used for projects as well., (*3)

Additional utilities are most welcome., (*4)

Currently implemented template helpers

File helper functions:

  • format_file_size_from_bytes: Formats size of file in bytes to bytes, KBs, MBs or GBs with size label
  • format_posix_file_permissions_to_human: Formats posix file permissions to human
  • get_posix_file_owner_info_by_id: Returns required info regarding owner
  • get_posix_file_group_info_by_id: Returns required info regarding group
  • get_file_properties: Returns common OS properties for file HDD

Word helper functions:

  • get_reduced_raw_text: Reduce given raw text to defined number of words or chars

Money helper functions:

  • format_amount: Formats amount of money according to the format settings in config.yml

Currently implemented utility classes

dmConsoleLog class:

The class can be injected via service container, as console_log service. The service ought to be used for the logging into console, for tasks., (*5)

Even if this is enabled to do trough tasks, by using this service, you can write service that can be used in task and service can log into console, if service is called from task., (*6)

In that matter, there is no duplicated code (service and task doing the same thing)., (*7)

The Versions

09/12 2012

dev-master

9999999-dev http://www.runopencode.com/projects/diem/plugins/dmCommonHelpersPlugin

dmCommonHelpersPlugin - The collection of common helpers and libraries for Diem Extended

  Sources   Download

Free for all

The Requires

 

plugin helper diem diem extended dmcommonhelpersplugin