diff --git a/skeleton/TODO.org b/skeleton/TODO.org deleted file mode 100644 index 5ec12f80..00000000 --- a/skeleton/TODO.org +++ /dev/null @@ -1,41 +0,0 @@ -#+STARTUP: logdone -#+TODO: TODO(t) INPROGRESS(i) FUTURE(f) | DONE(d!) CANCELED(c!) - -* DONE php-classobj.el - CLOSED: [2015-05-17 dom 14:52] - - State "DONE" from "INPROGRESS" [2015-05-17 dom 14:52] -* DONE php-control-structures.el - -* DONE php-crack.el - CLOSED: [2015-05-15 vie 11:42] - - State "DONE" from "TODO" [2015-05-15 vie 11:42] -* DONE php-dio.el - CLOSED: [2015-05-15 vie 18:04] - - State "DONE" from "INPROGRESS" [2015-05-15 vie 18:04] -* INPROGRESS php-dom.el -* DONE php-exceptions.el - CLOSED: [2015-05-15 vie 11:49] - - State "DONE" from "TODO" [2015-05-15 vie 11:49] -* DONE php-filesystem.el -* DONE php-gd.el - CLOSED: [2015-06-19 vie 16:32] - - State "DONE" from "TODO" [2015-06-19 vie 16:32] -file:///usr/share/doc/php-doc/html/ref.image.html -* DONE php-exif.el - CLOSED: [2015-05-24 dom 18:27] - - State "DONE" from "INPROGRESS" [2015-05-24 dom 18:27] -* DONE php-math.el - CLOSED: [2015-05-15 vie 12:13] - - State "DONE" from "TODO" [2015-05-15 vie 12:13] -* DONE php-pcre.el -* DONE php-regex.el - CLOSED: [2015-05-17 dom 16:47] - - State "DONE" from "INPROGRESS" [2015-05-17 dom 16:47] -* DONE php-strings.el - CLOSED: [2015-05-24 dom 15:33] - - State "DONE" from "INPROGRESS" [2015-05-24 dom 15:33] -* DONE php-var.el - CLOSED: [2015-05-16 sáb 17:10] - - State "DONE" from "INPROGRESS" [2015-05-16 sáb 17:10] -* INPROGRESS php-xmlparser.el -* INPROGRESS php-xmlreader.el diff --git a/skeleton/php-array.el b/skeleton/php-array.el deleted file mode 100644 index ecfaedd5..00000000 --- a/skeleton/php-array.el +++ /dev/null @@ -1,718 +0,0 @@ -;; Copyright (C) 2015 David Arroyo Menéndez - -;; Author: David Arroyo Menéndez -;; Maintainer: David Arroyo Menéndez - -;; This file is free software; you can redistribute it and/or modify -;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation; either version 3, or (at your option) -;; any later version. - -;; This file is distributed in the hope that it will be useful, -;; but WITHOUT ANY WARRANTY; without even the implied warranty of -;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -;; GNU General Public License for more details. - -;; You should have received a copy of the GNU General Public License -;; along with GNU Emacs; see the file COPYING. If not, write to -;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -;; Boston, MA 02110-1301 USA, - -;; Arrays handling functions -;; http://php.net/manual/en/ref.array.php -;; file:///usr/share/doc/php-doc/html/ref.array.html - -(define-skeleton php-array_change_key_case - "Insert an array_change_key_case statement. Changes the case of all keys in an array" - "" - '(setq array (skeleton-read "array: ")) - '(setq case (skeleton-read "case: ")) - > "array_change_key_case(" array ", " case ");" \n -) - -(define-skeleton php-array_chunk - "Insert an array_chunk statement. Split an array into chunks" - "" - '(setq array (skeleton-read "array: ")) - '(setq size (skeleton-read "size: ")) - '(setq preserve_keys (skeleton-read "preserve_keys: ")) - > "array_chunk(" array ", " size ", " preserve_keys ");" \n -) - -(define-skeleton php-array_column - "Insert an array_column statement. Return the values from a single column in the input array" - "" - '(setq array (skeleton-read "array: ")) - '(setq column_key (skeleton-read "column_key: ")) - '(setq index_key (skeleton-read "index_key: ")) - > "array_column(" array ", " column_key ", " index_key ");" \n -) - -(define-skeleton php-array_combine - "Insert an array_combine statement. Creates an array by using one array for keys and another for its values" - "" - '(setq keys (skeleton-read "keys: ")) - '(setq values (skeleton-read "values: ")) - > "array_combine(" keys ", " values ");" \n -) - -(define-skeleton php-array_count_values - "Insert an array_count_values statement. Counts all the values of an array" - "" - '(setq array (skeleton-read "array: ")) - > "array_count_values(" array ");" \n -) - -(define-skeleton php-array_diff_assoc - "Insert an array_diff_assoc statement. Computes the difference of arrays with additional index check" - "" - '(setq array (skeleton-read "array: ")) - > "array_diff_assoc(" array - ( "another array?, %s: " - ", " str ) - > ");" -) - -(define-skeleton php-array_diff_key - "Insert an array_diff_key statement. Computes the difference of arrays using keys for comparison" - "" - '(setq array (skeleton-read "array: ")) - > "array_diff_key(" array - ( "another array?, %s: " - ", " str ) - > ");" -) - - -(define-skeleton php-array_diff_uassoc - "Insert an array_diff_uassoc statement." - "" - '(setq array (skeleton-read "array: ")) - > "array_diff_uassoc(" array - ( "another array?, %s: " - ", " str ) - > ", " (skeleton-read "key compare function: ") ");" -) - - -(define-skeleton php-array_diff_ukey - "Insert an array_diff_ukey statement. Computes the difference of arrays using a callback function on the keys for comparison" - "" - '(setq array (skeleton-read "array: ")) - > "array_diff_ukey(" array - ( "another array?, %s: " - ", " str ) - > ", " (skeleton-read "key compare function: ") ");" -) - - -(define-skeleton php-array_diff - "Insert an array_diff statement. Computes the difference of arrays" - "" - '(setq array1 (skeleton-read "array1: ")) - '(setq array2 (skeleton-read "array2: ")) - > "array_diff(" array1 ", " array2 - ( "another array?, %s: " - ", " str) - > ");" \n -) - -(define-skeleton php-array_fill_keys - "Insert an array_fill_keys statement." - "" - '(setq keys (skeleton-read "keys: ")) - '(setq value (skeleton-read "value: ")) - > "array_fill_keys(" keys ", " value ");" \n -) - -(define-skeleton php-array_fill - "Insert an array_fill statement." - "" - '(setq start_index (skeleton-read "start_index: ")) - '(setq num (skeleton-read "num: ")) - '(setq value (skeleton-read "value: ")) - > "array_fill(" start_index ", " num ", " value ");" \n -) - -(define-skeleton php-array_filter - "Insert an array_filter statement." - "" - '(setq array (skeleton-read "array: ")) - '(setq callback (skeleton-read "callback: ")) - > "array_filter(" array ", " callback ");" \n -) - -(define-skeleton php-array_flip - "Insert an array_flip statement." - "" - '(setq array (skeleton-read "array: ")) - > "array_flip(" array ");" \n -) - -(define-skeleton php-array_intersect_key - "Insert an array_intersect_key statement. Computes the intersection of arrays using keys for comparison" - "" - '(setq array1 (skeleton-read "array1: ")) - '(setq array2 (skeleton-read "array2: ")) - > "array_intersect_key(" array1 ", " array2 - ( "another array?, %s: " - ", " str) - ");" \n -) - -(define-skeleton php-array_intersect_uassoc - "Insert an array_intersect_uassoc statement. " - "" - '(setq array1 (skeleton-read "array1: ")) - '(setq array2 (skeleton-read "array2: ")) - > "array_intersect_uassoc(" array2 ", " array2 - ( "another array?, %s: " - ", " str) - > ", " (skeleton-read "key compare function: ") - ");" \n -) - -(define-skeleton php-array_intersect_ukey - "Insert an array_intersect_ukey statement. Computes the intersection of arrays using a callback function on the keys for comparison" - "" - '(setq array1 (skeleton-read "array1: ")) - '(setq array2 (skeleton-read "array2: ")) - > "array_intersect_ukey(" array1 ", " array2 - ( "another array?, %s: " - ", " str) - > ", " (skeleton-read "key compare function: ") - ");" \n -) - -(define-skeleton php-array_intersect - "Insert an array_intersect statement. Computes the intersection of arrays -" - "" - '(setq array1 (skeleton-read "array1: ")) - '(setq array2 (skeleton-read "array2: ")) - > "array_intersect(" array1 ", " array2 - ( "another array?, %s: " - ", " str) - ");" \n -) - -(define-skeleton php-array_key_exists - "Insert an array_key_exists statement. Checks if the given key or index exists in the array" - "" - '(setq key (skeleton-read "key: ")) - '(setq array (skeleton-read "array: ")) - > "array_key_exists(" key ", " array ");" \n -) - -(define-skeleton php-array_keys - "Insert an array_keys statement. Return all the keys or a subset of the keys of an array" - "" - '(setq array (skeleton-read "array: ")) - '(setq search_value (skeleton-read "search_value: ")) - '(setq strict (skeleton-read "strict: ")) - > "array_keys(" array ", " search_value ", " strict ");" \n -) - -(define-skeleton php-array_map - "Insert an array_map statement. Applies the callback to the elements of the given arrays" - "" - '(setq callback (skeleton-read "callback: ")) - '(setq array1 (skeleton-read "array1: ")) - > "array_map(" callback ", " array1 - ( "another array?, %s: " - ", " str) - ");" \n -) - -(define-skeleton php-array_merge_recursive - "Insert an array_merge_recursive statement. Merge two or more arrays recursively" - "" - '(setq array1 (skeleton-read "array1: ")) - > "array_merge_recursive(" array1 - ( "another array?, %s: " - ", " str) - ");" \n -) - -(define-skeleton php-array_merge - "Insert an array_merge statement. Merge two or more arrays recursively" - "" - '(setq array1 (skeleton-read "array1: ")) - > "array_merge(" array1 - ( "another array?, %s: " - ", " str) - ");" \n -) - -(define-skeleton php-array_multisort - "Insert an array_multisort statement. Sort multiple or multi-dimensional arrays" - "" - '(setq array1 (skeleton-read "array1: ")) - '(setq array1_sort_order (skeleton-read "array1_sort_order: ")) - '(setq array1_sort_flags (skeleton-read "array1_sort_flags: ")) - > "array_multisort(" array1 ", " array1_sort_order ", " array_sort_flags ");" \n -) - -(define-skeleton php-array_pad - "Insert an array_pad statement. Pad array to the specified length with a value" - "" - '(setq array (skeleton-read "array: ")) - '(setq size (skeleton-read "size: ")) - '(setq value (skeleton-read "value: ")) - > "array_pad(" array ", " size ", " value ");" \n -) - -(define-skeleton php-array_pop - "Insert an array_pop statement." - "" - '(setq array (skeleton-read "array: ")) - > "array_pop(" array ");" \n -) - -(define-skeleton php-array_product - "Insert an array_product statement." - "" - '(setq array (skeleton-read "array: ")) - > "array_product(" array ");" \n -) - -(define-skeleton php-array_push - "Insert an array_push statement." - "" - '(setq array (skeleton-read "array: ")) - '(setq value1 (skeleton-read "value1: ")) - > "array_push(" array ", " value1 - ( "another variable?, %s: " - ", " str) - ");" \n -) - -(define-skeleton php-array_rand - "Insert an array_rand statement." - "" - '(setq array (skeleton-read "array: ")) - '(setq num (skeleton-read "num: ")) - > "array_rand(" array ", " num ");" \n -) - -(define-skeleton php-array_reduce - "Insert an array_reduce statement. Iteratively reduce the array to a single value using a callback function" - "" - '(setq array (skeleton-read "array: ")) - '(setq callback (skeleton-read "callback: ")) - '(setq initial (skeleton-read "initial: ")) - > "array_reduce(" array ", " callback ", " initial ");" \n -) - -(define-skeleton php-array_replace_recursive - "Insert an array_replace_recursive statement. Replaces elements from passed arrays into the first array recursively" - "" - '(setq array1 (skeleton-read "array1: ")) - '(setq array2 (skeleton-read "array2: ")) - > "array_replace_recursive(" array1 ", " array2 - ( "another array?, %s: " - ", " str) - ");" \n -) - -(define-skeleton php-array_replace - "Insert an array_replace statement." - "" - '(setq array1 (skeleton-read "array1: ")) - '(setq array2 (skeleton-read "array2: ")) - > "array_replace(" array1 ", " array2 - ( "another array?, %s: " - ", " str) - ");" \n -) - -(define-skeleton php-array_reverse - "Insert an array_reverse statement." - "" - '(setq array (skeleton-read "array: ")) - '(setq preserve_keys (skeleton-read "preserve_keys: ")) - > "array_reverse(" array ", " preserve_keys ");" \n -) - -(define-skeleton php-array_search - "Insert an array_search statement." - "" - '(setq needle (skeleton-read "needle: ")) - '(setq array (skeleton-read "array: ")) - '(setq strict (skeleton-read "strict: ")) - > "array_search(" needle ", " array ", " strict ");" \n -) - -(define-skeleton php-array_shift - "Insert an array_shift statement." - "" - '(setq array (skeleton-read "array: ")) - > "array_shift(" array ");" \n -) - -(define-skeleton php-array_slice - "Insert an array_slice statement." - "" - '(setq array (skeleton-read "array: ")) - '(setq offset (skeleton-read "offset: ")) - '(setq length (skeleton-read "length: ")) - '(setq preserve_keys (skeleton-read "preserve_keys: ")) - > "array_slice(" array ", " offset ", " length ", " preserve_keys ");" \n -) - -(define-skeleton php-array_splice - "Insert an array_slice statement." - "" - '(setq array (skeleton-read "array: ")) - '(setq offset (skeleton-read "offset: ")) - '(setq length (skeleton-read "length: ")) - '(setq replacement (skeleton-read "replacement: ")) - > "array_slice(" array ", " offset ", " length ", " replacement ");" \n -) - -(define-skeleton php-array_sum - "Insert an array_sum statement." - "" - '(setq array (skeleton-read "array: ")) - > "array_sum(" array ");" \n -) - -(define-skeleton php-array_udiff_assoc - "Insert an array_udiff_assoc statement. Computes the difference of arrays with additional index check, compares data by a callback function" - "" - '(setq array1 (skeleton-read "array1: ")) - '(setq array2 (skeleton-read "array2: ")) - > "array_udiff_assoc(" array1 ", " array2 - ( "another array?, %s: " - ", " str) - ", " (skeleton-read "value compare func: ") ");" \n -) - -(define-skeleton php-array_udiff_uassoc - "Insert an array_udiff_assoc statement. Computes the difference of arrays with additional index check, compares data and indexes by a callback function" - "" - '(setq array1 (skeleton-read "array1: ")) - '(setq array2 (skeleton-read "array2: ")) - > "array_udiff_assoc(" array1 ", " array2 - ( "another array?, %s: " - ", " str) - ", " (skeleton-read "value compare func: ") - ", " (skeleton-read "key compare func: ") - ");" \n -) - -(define-skeleton php-array_udiff - "Insert an array_udiff_assoc statement. Computes the difference of arrays by using a callback function for data comparison" - "" - '(setq array1 (skeleton-read "array1: ")) - '(setq array2 (skeleton-read "array2: ")) - > "array_udiff(" array1 ", " array2 - ( "another array?, %s: " - ", " str) - ", " (skeleton-read "value compare func: ") ");" \n -) - -(define-skeleton php-array_uintersect_assoc - "Insert an array_uintersect_assoc statement. Computes the intersection of arrays with additional index check, compares data by a callback function" - "" - '(setq array1 (skeleton-read "array1: ")) - '(setq array2 (skeleton-read "array2: ")) - > "array_uintersect_assoc(" array1 ", " array2 - ( "another array?, %s: " - ", " str) - ", " (skeleton-read "value compare func: ") ");" \n -) - -(define-skeleton php-array_uintersect_uassoc - "Insert an array_uintersect_uassoc statement. Computes the intersection of arrays with additional index check, compares data and indexes by a callback functions" - "" - '(setq array1 (skeleton-read "array1: ")) - '(setq array2 (skeleton-read "array2: ")) - > "array_uintersect_uassoc(" array1 ", " array2 - ( "another array?, %s: " - ", " str) - ", " (skeleton-read "value compare func: ") - ", " (skeleton-read "key compare func: ") ");" \n -) - -(define-skeleton php-array_uintersect - "Insert an array_uintersect statement." - "" - '(setq array1 (skeleton-read "array1: ")) - '(setq array2 (skeleton-read "array2: ")) - > "array_uintersect(" array1 ", " array2 - ( "another array?, %s: " - ", " str) - ", " (skeleton-read "value compare func: ") ");" \n -) - -(define-skeleton php-array_unique - "Insert an array_unique statement. Removes duplicate values from an array" - "" - '(setq array (skeleton-read "array: ")) - '(setq sort_flags (skeleton-read "sort_flags: ")) - > "array_unique(" array ", " sort_flags ");" \n -) - -(define-skeleton php-array_unshift - "Insert an array_unshift statement. Prepend one or more elements to the beginning of an array" - "" - '(setq array (skeleton-read "array: ")) - '(setq value1 (skeleton-read "value1: ")) - > "array_unshift(" array ", " value1 - ( "another value?, %s: " - ", " str) - ");" \n -) - -(define-skeleton php-array_values - "Insert an array_values statement." - "" - '(setq array (skeleton-read "array: ")) - > "array_values(" array ");" \n -) - -(define-skeleton php-array_walk_recursive - "Insert an array_walk_recursive statement." - "" - '(setq array (skeleton-read "array: ")) - '(setq callback (skeleton-read "callback: ")) - '(setq userdata (skeleton-read "userdata: ")) - > "array_walk_recursive(" array ", " callback ", " userdata ");" \n -) - -(define-skeleton php-array_walk - "Insert an array_walk statement." - "" - '(setq array (skeleton-read "array: ")) - '(setq callback (skeleton-read "callback: ")) - '(setq userdata (skeleton-read "userdata: ")) - > "array_walk(" array ", " callback ", " userdata ");" \n -) - -(define-skeleton php-array - "Insert an array statement." - "" - > "array(" _ ");" \n -) - -(define-skeleton php-arsort - "Insert an arsort statement. Sort an array in reverse order and maintain index association" - "" - '(setq array (skeleton-read "array: ")) - '(setq sort_flags (skeleton-read "sort_flags: ")) - > "arsort(" array ", " sort_flags ");" \n -) - -(define-skeleton php-asort - "Insert an asort statement. Sort an array and maintain index association" - "" - '(setq array (skeleton-read "array: ")) - '(setq sort_flags (skeleton-read "sort_flags: ")) - > "asort(" array ", " sort_flags ");" \n -) - -(define-skeleton php-compact - "Insert a compact statement. Create array containing variables and their values" - "" - '(setq var1 (skeleton-read "variable 1: ")) - > "compact(" var1 - ( "another variable?, %s: " - ", " str) - ");" \n -) - -(define-skeleton php-count - "Insert a count statement. Count all elements in an array, or something in an object" - "" - '(setq array_or_countable (skeleton-read "array_or_countable: ")) - '(setq mode (skeleton-read "mode: ")) - > "count(" array_or_countable ", " mode ");" \n -) - -(define-skeleton php-current - "Insert a current statement. Return the current element in an array" - "" - '(setq array (skeleton-read "array: ")) - > "current(" array ");" \n -) - -(define-skeleton php-each - "Insert a each statement. Return the current key and value pair from an array and advance the array cursor" - "" - '(setq array (skeleton-read "array: ")) - > "each(" array ");" \n -) - -(define-skeleton php-end - "Insert a end statement. Set the internal pointer of an array to its last element" - "" - '(setq array (skeleton-read "array: ")) - > "end(" array ");" \n -) - -(define-skeleton php-extract - "Insert a extract statement. Import variables into the current symbol table from an array" - "" - '(setq array (skeleton-read "array: ")) - '(setq flags (skeleton-read "flags: ")) - '(setq prefix (skeleton-read "prefix: ")) - > "extract(" array ", " flags ", " prefix ");" \n -) - - -(define-skeleton php-in_array - "Insert an in_array statement. Checks if a value exists in an array" - "" - '(setq value (skeleton-read "value: ")) - '(setq array (skeleton-read "array: ")) - '(setq strict (skeleton-read "strict: ")) - > "in_array(" value ", " array ", " strict ");" \n -) - -(define-skeleton php-key_exists - "Insert a key_exists statement. Alias of array_key_exists. Checks if the given key or index exists in the array" - "" - '(setq key (skeleton-read "key: ")) - '(setq array (skeleton-read "array: ")) - > "key_exists(" key ", " array");" \n -) - -(define-skeleton php-key - "Insert a key statement." - "" - '(setq array (skeleton-read "array: ")) - > "key(" array ");" \n -) - -(define-skeleton php-krsort - "Insert a krsort statement." - "" - '(setq array (skeleton-read "array: ")) - '(setq sort_flags (skeleton-read "sort_flags: ")) - > "krsort(" array ", " sort_flags ");" \n -) - -(define-skeleton php-ksort - "Insert a ksort statement." - "" - '(setq array (skeleton-read "array: ")) - '(setq sort_flags (skeleton-read "sort_flags: ")) - > "ksort(" array ", " sort_flags ");" \n -) - - -(define-skeleton php-list - "Insert a list statement." - "" - '(setq var1 (skeleton-read "var1: ")) - > "list(" var1 - ( "another variable?, %s: " - ", " str) - ");" \n -) - -(define-skeleton php-natcasesort - "Insert a natcasesort statement." - "" - '(setq array (skeleton-read "array: ")) - > "natcasesort(" array ");" \n -) - -(define-skeleton php-natsort - "Insert a natsort statement. Sort an array using a natural order algorithm" - "" - '(setq array (skeleton-read "array: ")) - > "natsort(" array ");" \n -) - -(define-skeleton php-next - "Insert a next statement. Advance the internal array pointer of an array" - "" - '(setq array (skeleton-read "array: ")) - > "next(" array ");" \n -) - -(define-skeleton php-pos - "Insert a pos statement. Alias of current. Return the current element in an array" - "" - '(setq array (skeleton-read "array: ")) - > "pos(" array ");" \n -) - -(define-skeleton php-prev - "Insert a prev statement. Rewind the internal array pointer" - "" - '(setq array (skeleton-read "array: ")) - > "prev(" array ");" \n -) - -(define-skeleton php-range - "Insert a range statement. Create an array containing a range of elements" - "" - '(setq start (skeleton-read "start: ")) - '(setq end (skeleton-read "end: ")) - '(setq step (skeleton-read "step: ")) - > "range(" start ", " end ", " step ");" \n -) - -(define-skeleton php-reset - "Insert a reset statement. Set the internal pointer of an array to its first element" - "" - '(setq array (skeleton-read "array: ")) - > "reset(" array ");" \n -) - -(define-skeleton php-rsort - "Insert a rsort statement. Sort an array in reverse order" - "" - '(setq array (skeleton-read "array: ")) - '(setq sort_flags (skeleton-read "sort_flags: ")) - > "rsort(" array ", " sort_flags ");" \n -) - -(define-skeleton php-shuffle - "Insert a shuffle statement. This function shuffles (randomizes the order of the elements in) an array. " - "" - '(setq array (skeleton-read "array: ")) - > "shuffle(" array ");" \n -) - -(define-skeleton php-sizeof - "Insert a sizeof statement. Alias of count." - "" - '(setq array (skeleton-read "array: ")) - > "sizeof(" array ");" \n -) - -(define-skeleton php-sort - "Insert a sort statement. Sort an array." - "" - '(setq array (skeleton-read "array: ")) - '(setq sort_flags (skeleton-read "sort_flags: ")) - > "sort(" array ", " sort_flags ");" \n -) - -(define-skeleton php-uasort - "Insert a uasort statement. Sort an array with a user-defined comparison function and maintain index association." - "" - '(setq array (skeleton-read "array: ")) - '(setq value_compare_func (skeleton-read "value_compare_func: ")) - > "uasort(" array ", " value_compare_func ");" \n -) - -(define-skeleton php-uksort - "Insert a uksort statement. Sort an array by keys using a user-defined comparison function." - "" - '(setq array (skeleton-read "array: ")) - '(setq key_compare_func (skeleton-read "key_compare_func: ")) - > "uksort(" array ", " key_compare_func ");" \n -) - -(define-skeleton php-usort - "Insert a usort statement. Sort an array by values using a user-defined comparison function." - "" - '(setq array (skeleton-read "array: ")) - '(setq value_compare_func (skeleton-read "value_compare_func: ")) - > "usort(" array ", " value_compare_func ");" \n -) diff --git a/skeleton/php-classobj.el b/skeleton/php-classobj.el deleted file mode 100644 index 07993124..00000000 --- a/skeleton/php-classobj.el +++ /dev/null @@ -1,172 +0,0 @@ -;; Copyright (C) 2015 David Arroyo Menéndez - -;; Author: David Arroyo Menéndez -;; Maintainer: David Arroyo Menéndez - -;; This file is free software; you can redistribute it and/or modify -;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation; either version 3, or (at your option) -;; any later version. - -;; This file is distributed in the hope that it will be useful, -;; but WITHOUT ANY WARRANTY; without even the implied warranty of -;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -;; GNU General Public License for more details. - -;; You should have received a copy of the GNU General Public License -;; along with GNU Emacs; see the file COPYING. If not, write to -;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -;; Boston, MA 02110-1301 USA, - -;; To install php-ext.el: -;; You can add (load "path/php-ext/php-ext.el") to your .emacs - -;; Classes Functions -;; http://php.net/manual/en/ref.classobj.php -;; file:///usr/share/doc/php-doc/html/ref.classobj.html - -(define-skeleton php-class - "Insert a class statement." - "" - '(setq class (skeleton-read "Class name? ")) \n - > "class " class \n - > "{" \n - ( "Variable? %s: " - > "var " str ";" \n ) - ( "Function? %s: " - > "function " str "(" ( "Parameter? %s:" str ", " ) ")" \n - > "{ " \n - _ - > "} " \n - ) - > "}" \n -) - -(define-skeleton php__autoload - "Insert a __autoload statement. Attempt to load undefined class" - "" - '(setq class (skeleton-read "Class: ")) - > "__autoload(" class ");" \n -) - -(define-skeleton php-class_alias - "Insert a class_alias statement. Creates an alias for a class" - "" - '(setq original (skeleton-read "Original: ")) - '(setq alias (skeleton-read "Alias: ")) - '(setq autoload (skeleton-read "Autoload: ")) - > "class_alias(" original ", " alias ", " autoload ");" \n -) - -(define-skeleton php-class_exists - "Insert a class_exists statement. Checks if the class has been defined" - "" - '(setq class_name (skeleton-read "Class name: ")) - '(setq autoload (skeleton-read "Autoload: ")) - > "class_exists(" class_name ", " autoload ");" \n -) - -(define-skeleton php-get_called_class - "Insert a get_called_class statement. Gets the name of the class the static method is called in." - > "get_called_class();" \n -) - -(define-skeleton php-get_class_methods - "Insert a get_class_methods statement." - "" - '(setq str (skeleton-read "Class? ")) - > "get_class_methods('" str "');" \n -) - -(define-skeleton php-get_class_vars - "Insert a get_class_vars statement." - "" - '(setq str (skeleton-read "Class? ")) - > "get_class_vars('" str "');" \n -) - -(define-skeleton php-get_class - "Insert a get_class statement." - "" - '(setq str (skeleton-read "Class? ")) - > "get_class('" str "');" \n -) - -(define-skeleton php-get_declared_classes - "Insert a get_declared_classes statement." - > "get_declared_classes();" \n -) - -(define-skeleton php-get_declared_interfaces - "Insert a get_declared_interfaces statement." - > "get_declared_interfaces();" \n -) - -(define-skeleton php-get_declared_traits - "Insert a get_declared_traits statement." - > "get_declared_traits();" \n -) - -(define-skeleton php-get_object_vars - "Insert a get_object_var statement." - "" - '(setq var (skeleton-read "Var? ")) - > "get_object_vars(" var ");" \n -) - -(define-skeleton php-get_parent_class - "Insert a get_parent_class statement." - "" - '(setq obj (skeleton-read "Object? ")) - > "get_parent_class(" obj ");" \n -) - -(define-skeleton php-interface_exists - "Insert a interface_exists statement." - "" - '(setq interface_name (skeleton-read "Interface Name: ")) - '(setq autoload (skeleton-read "Autoload: ")) - > "interface_exists(" interface_name ", " autoload ");" \n -) - -(define-skeleton php-is_a - "Insert an is_a statement. Checks if the object is of this class or has this class as one of its parents" - "" - '(setq object (skeleton-read "Object: ")) - '(setq class_name (skeleton-read "Class name: ")) - '(setq allow_string (skeleton-read "Allow string: ")) - > "is_a(" object ", " class_name ", " allow_string ");" \n -) - -(define-skeleton php-is_subclass_of - "Insert an is_subclass_of statement." - "" - '(setq obj (skeleton-read "Object: ")) - '(setq class (skeleton-read "Class Name: ")) - '(setq allow_string (skeleton-read "Allow string: ")) - > "is_subclass_of(" obj ", " class ", " allow_string ");" \n -) - -(define-skeleton php-method_exists - "Insert a method_exists statement." - "" - '(setq obj (skeleton-read "Object: ")) - '(setq method (skeleton-read "Method: ")) - > "method_exists(" object ", " method ");" \n -) - -(define-skeleton php-property_exists - "Insert a property_exists statement." - "" - '(setq class (skeleton-read "Class: ")) - '(setq property (skeleton-read "Property: ")) - > "property_exists(" class ", " property ");" \n -) - -(define-skeleton php-trait_exists - "Insert a trait_exists statement." - "" - '(setq trait (skeleton-read "Trait: ")) - '(setq autoload (skeleton-read "Autoload (TRUE | FALSE): ")) - > "trait_exists(" trait ", " autoload ");" \n -) diff --git a/skeleton/php-control-structures.el b/skeleton/php-control-structures.el deleted file mode 100644 index 39b86a6d..00000000 --- a/skeleton/php-control-structures.el +++ /dev/null @@ -1,124 +0,0 @@ -;; Copyright (C) 2015 David Arroyo Menéndez - -;; Author: David Arroyo Menéndez -;; Maintainer: David Arroyo Menéndez - -;; This file is free software; you can redistribute it and/or modify -;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation; either version 3, or (at your option) -;; any later version. - -;; This file is distributed in the hope that it will be useful, -;; but WITHOUT ANY WARRANTY; without even the implied warranty of -;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -;; GNU General Public License for more details. - -;; You should have received a copy of the GNU General Public License -;; along with GNU Emacs; see the file COPYING. If not, write to -;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -;; Boston, MA 02110-1301 USA, - -;; To install php-ext.el: -;; You can add (load "path/php-ext/php-ext.el") to your .emacs - -;; Description: -;; Php ext is some skeleton templates for extend php-mode - -;; Control Structure functions -;; http://php.net/manual/en/language.control-structures.php -;; file:///usr/share/doc/php-doc/html/language.control-structures.html - -(define-skeleton php-if - "Insert a if statement" - "" - '(setq condition (skeleton-read "Condition? ")) \n - > "if( " condition " ) {" \n - > _ \n - ( "other condition, %s: " - > -2 "}" \n - > "else if( " str " ) {" \n - > _ \n) - > -2 "}" \n - > "else {" \n - > _ \n - resume: - > -2 "}" \n) - -(define-skeleton php-foreach - "Insert a foreach statement." - "" - '(setq value (skeleton-read "Value variable? ")) \n - '(setq array (skeleton-read "Array? ")) \n - > "foreach (" array " as " value ") {" \n - > _ \n - > -2 "}" \n) - -(define-skeleton php-for - "Insert a for statement." - "" - '(setq index (skeleton-read "Index variable? ")) \n - '(setq condition (skeleton-read "Condition? ")) \n - > "for (" condition "; " index "++) {" \n - > _ \n - > -2 "}" \n) - -(define-skeleton php-switch - "Insert a switch statement." - "" - '(setq index (skeleton-read "Index variable? ")) \n - "switch (" index ") {" \n - ( "Some case? %s: " - > "case " str ":" \n - > _ \n - > -2 "break;" \n - ) - "}") - -(define-skeleton php-switch-case - "Insert a switch statement." - "" - ( "Some case? %s: " - > "case " str ":" \n - > _ \n - > -2 "break;" \n - ) -) - - -(define-skeleton php-include - "Insert a include statement." - "" - '(setq file (skeleton-read "File? ")) \n - > "include_once '" file "';") - -(define-skeleton php-include_once - "Insert a include_once statement." - "" - '(setq file (skeleton-read "File? ")) \n - > "include_once '" file "';") - -(define-skeleton php-return - "Insert a return statement." - "" - > "return " _ ";") - -(define-skeleton php-require - "Insert a require statement." - "" - '(setq file (skeleton-read "File? ")) \n - > "require '" file "';") - -(define-skeleton php-require_once - "Insert a require_once statement." - "" - '(setq file (skeleton-read "File? ")) \n - > "require_once '" file "';") - -(define-skeleton php-goto - "Insert a goto statement." - "" - '(setq index (skeleton-read "Index variable? ")) \n - > "goto " index ";" \n - > _ \n - > index ":" \n - > _ \n) diff --git a/skeleton/php-crack.el b/skeleton/php-crack.el deleted file mode 100644 index b603a699..00000000 --- a/skeleton/php-crack.el +++ /dev/null @@ -1,57 +0,0 @@ -;; Copyright (C) 2015 David Arroyo Menéndez - -;; Author: David Arroyo Menéndez -;; Maintainer: David Arroyo Menéndez - -;; This file is free software; you can redistribute it and/or modify -;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation; either version 3, or (at your option) -;; any later version. - -;; This file is distributed in the hope that it will be useful, -;; but WITHOUT ANY WARRANTY; without even the implied warranty of -;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -;; GNU General Public License for more details. - -;; You should have received a copy of the GNU General Public License -;; along with GNU Emacs; see the file COPYING. If not, write to -;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -;; Boston, MA 02110-1301 USA, - -;; To install php-ext.el: -;; You can add (load "path/php-ext/php-ext.el") to your .emacs - -;; Description: -;; Php ext is some skeleton templates for extend php-mode -;; Functions defined in -;; http://php.net/manual/en/ref.crack.php -;; file:///usr/share/doc/php-doc/html/ref.crack.html - -(define-skeleton php-crack-check - "Insert a crack_check statement" - "" - '(setq dictionary (skeleton-read "Dictionary? ")) - '(setq pass (skeleton-read "Password? ")) - > "crack_check(" dictionary ", " pass ");" \n -) - - -(define-skeleton php-crack-closedict - "Insert a crack_closedict statement" - "" - '(setq dictionary (skeleton-read "Dictionary? ")) - > "crack_closedict(" dictionary ");" \n -) - -(define-skeleton php-crack-getlastmessage - "Insert a crack_getlastmessage statement" - "" - > "crack_getlastmessage();" \n -) - -(define-skeleton php-crack-opendict - "Insert a crack_opendict statement" - "" - '(setq dictionary (skeleton-read "Dictionary? ")) - > "crack_opendict(" dictionary ");" \n -) diff --git a/skeleton/php-dio.el b/skeleton/php-dio.el deleted file mode 100644 index 6b394f79..00000000 --- a/skeleton/php-dio.el +++ /dev/null @@ -1,102 +0,0 @@ -;; Copyright (C) 2015 David Arroyo Menéndez - -;; Author: David Arroyo Menéndez -;; Maintainer: David Arroyo Menéndez - -;; This file is free software; you can redistribute it and/or modify -;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation; either version 3, or (at your option) -;; any later version. - -;; This file is distributed in the hope that it will be useful, -;; but WITHOUT ANY WARRANTY; without even the implied warranty of -;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -;; GNU General Public License for more details. - -;; You should have received a copy of the GNU General Public License -;; along with GNU Emacs; see the file COPYING. If not, write to -;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -;; Boston, MA 02110-1301 USA, - -;; Dio Functions -;; http://php.net/manual/en/ref.dio.php -;; file:///usr/share/doc/php-doc/html/ref.dio.html - - -(define-skeleton php-dio_close - "Insert a dio_close statement" - "" - '(setq fd (skeleton-read "File Descriptor: ")) - > "dio_close(" fd ");" \n -) - -(define-skeleton php-dio_fcntl - "Insert a dio_fcntl statement" - "" - '(setq fd (skeleton-read "File Descriptor: ")) - '(setq cmd (skeleton-read "Command: (F_SETLK | F_SETLKW | F_GETLK | F_DUPFD | F_SETFL ) ")) - - '(setq args (skeleton-read "Args: (start | length | whence | type ) ")) - > "dio_fcntl(" fd ", " cmd ", " args ");" \n -) - - -(define-skeleton php-dio_open - "Insert a dio_open statement" - "" - '(setq filename (skeleton-read "Filename: ")) - '(setq flags (skeleton-read "Flags: ")) - '(setq mode (skeleton-read "Mode: ")) - > "dio_open(" filename ", " flags ", " mode ");" \n -) - -(define-skeleton php-dio_read - "Insert a dio_read statement" - "" - '(setq fd (skeleton-read "File Descriptor: ")) - '(setq length (skeleton-read "Length: ")) - > "dio_read(" fd ", " length ");" \n -) - -(define-skeleton php-dio_seek - "Insert a dio_seek statement" - "" - '(setq fd (skeleton-read "File Descriptor: ")) - '(setq pos (skeleton-read "Position: ")) - '(setq whence (skeleton-read "Specifies how the position pos should be interpreted (SEEK_SET | SEEK_CUR | SEEK_END): ")) - > "dio_seek(" fd ", " pos ", " whence ");" \n -) - -(define-skeleton php-dio_stat - "Insert a dio_read statement" - "" - '(setq fd (skeleton-read "File Descriptor: ")) - > "dio_stat(" fd ");" \n -) - -(define-skeleton php-dio_tcsetattr - "Insert a dio_tcsetattr statement" - "" - '(setq fd (skeleton-read "File Descriptor: ")) - '(setq options (skeleton-read "Options: ")) - > "dio_tcsetattr(" fd ", " options ");" \n -) - -(define-skeleton php-dio_truncate - "Insert a dio_truncate statement" - "" - '(setq fd (skeleton-read "File Descriptor: ")) - '(setq offset (skeleton-read "Offset: ")) - > "dio_truncate(" fd ", " offset ");" \n -) - -(define-skeleton php-dio_write - "Insert a dio_write statement" - "" - '(setq fd (skeleton-read "File Descriptor: ")) - '(setq data (skeleton-read "Data: ")) - '(setq len (skeleton-read "Length: ")) - > "dio_write(" fd ", " data ", " len ");" \n -) - - diff --git a/skeleton/php-dom.el b/skeleton/php-dom.el deleted file mode 100644 index ef48c6a5..00000000 --- a/skeleton/php-dom.el +++ /dev/null @@ -1,65 +0,0 @@ -;; Copyright (C) 2015 David Arroyo Menéndez - -;; Author: David Arroyo Menéndez -;; Maintainer: David Arroyo Menéndez - -;; This file is free software; you can redistribute it and/or modify -;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation; either version 3, or (at your option) -;; any later version. - -;; This file is distributed in the hope that it will be useful, -;; but WITHOUT ANY WARRANTY; without even the implied warranty of -;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -;; GNU General Public License for more details. - -;; You should have received a copy of the GNU General Public License -;; along with GNU Emacs; see the file COPYING. If not, write to -;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -;; Boston, MA 02110-1301 USA, - -;; To install php-ext.el: -;; You can add (load "path/php-ext/php-ext.el") to your .emacs - -;; Description: -;; Php ext is some skeleton templates for extend php-mode -;; DOM is to manage dom objects -;; http://php.net/manual/en/book.dom.php -;; More see file:///usr/share/doc/php-doc/html/book.dom.html - - -(define-skeleton php-domdocument - "Insert a new domdocument object" - "" - > "$" (skeleton-read "Var? ") " = DOMDocument('1.0');" \n -) - -(define-skeleton php-dom-appendChild - "Insert a new appendChild dom method" - "" - > (skeleton-read "Dom variable? ") "->appendChild(" (skeleton-read "Child? ") ");" \n -) - -(define-skeleton php-dom-createElement - "Insert a new appendChild dom method" - "" - > (skeleton-read "Dom variable? ") "->createElement(" (skeleton-read "Element? ") ");" \n -) - -(define-skeleton php-dom-createTextNode - "Insert a new appendChild dom method" - "" - > (skeleton-read "Dom variable? ") "->createTextNode(" (skeleton-read "Text Node? ") ");" \n -) - -(define-skeleton php-dom-setAttribute - "Insert a new appendChild dom method" - "" - > (skeleton-read "Dom variable? ") "->setAttribute(" (skeleton-read "Attribute? ") ", " (skeleton-read "Value? ") ");" \n -) - -(define-skeleton php-dom-saveXML - "Insert a new appendChild dom method" - "" - > (skeleton-read "Dom variable? ") "->saveXML();" \n -) diff --git a/skeleton/php-exceptions.el b/skeleton/php-exceptions.el deleted file mode 100644 index d9c8b13b..00000000 --- a/skeleton/php-exceptions.el +++ /dev/null @@ -1,54 +0,0 @@ -;; Copyright (C) 2015 David Arroyo Menéndez - -;; Author: David Arroyo Menéndez -;; Maintainer: David Arroyo Menéndez - -;; This file is free software; you can redistribute it and/or modify -;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation; either version 3, or (at your option) -;; any later version. - -;; This file is distributed in the hope that it will be useful, -;; but WITHOUT ANY WARRANTY; without even the implied warranty of -;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -;; GNU General Public License for more details. - -;; You should have received a copy of the GNU General Public License -;; along with GNU Emacs; see the file COPYING. If not, write to -;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -;; Boston, MA 02110-1301 USA, - -;; To install php-ext.el: -;; You can add (load "path/php-ext/php-ext.el") to your .emacs - -;; Description: -;; Php ext is some skeleton templates for extend php-mode - -;; Exceptions -;; http://php.net/manual/en/language.exceptions.php -;; file:///usr/share/doc/php-doc/html/language.exceptions.html - -(define-skeleton php-try-catch - "Insert a try catch statement" - "" - > "try {" \n - _ \n - > "} catch (" (skeleton-read "Exception? ") ") {" \n - _ \n - > "}" \n -) - -(define-skeleton php-try-catch-finally - "Insert a try catch statement" - "" - > "try {" \n - _ \n - > "} catch (" (skeleton-read "Exception? ") ") {" \n - _ \n - > "} finally {" \n - _ \n - > "}" \n -) - - - diff --git a/skeleton/php-exif.el b/skeleton/php-exif.el deleted file mode 100644 index f7ae2eb6..00000000 --- a/skeleton/php-exif.el +++ /dev/null @@ -1,57 +0,0 @@ -;; Copyright (C) 2015 David Arroyo Menéndez - -;; Author: David Arroyo Menéndez -;; Maintainer: David Arroyo Menéndez - -;; This file is free software; you can redistribute it and/or modify -;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation; either version 3, or (at your option) -;; any later version. - -;; This file is distributed in the hope that it will be useful, -;; but WITHOUT ANY WARRANTY; without even the implied warranty of -;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -;; GNU General Public License for more details. - -;; You should have received a copy of the GNU General Public License -;; along with GNU Emacs; see the file COPYING. If not, write to -;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -;; Boston, MA 02110-1301 USA, - -;; Exif functions -;; http://php.net/manual/en/ref.exif.php -;; file:///usr/share/doc/php-doc/html/ref.exif.html - - -(define-skeleton php-exif_imagetype - "Insert an exif_imagetype statement. Determine the type of an image" - > "exif_imagetype(" (skeleton-read "Filename? ") ");" -) - -(define-skeleton php-exif_read_data - "Insert an exif_read_data. Reads the EXIF headers from JPEG or TIFF" - "" - '(setq filename (skeleton-read "Filename? ")) - '(setq sections (skeleton-read "Sections? ")) - '(setq arrays (skeleton-read "Arrays (TRUE | FALSE)? ")) - '(setq thumbnail (skeleton-read "Thumbnail (TRUE | FALSE)? ")) - > "exif_read_data(" filename ", " sections ", " arrays ", " thumbnail ");" \n -) - -(define-skeleton php-exif_tagname - "Insert an exif_tagname. Get the header name for an index" - "" - '(setq index (skeleton-read "Index? ")) - > "exif_tagname(" index ");" \n -) - -(define-skeleton php-exif_thumbnail - "Insert an exif_thumbnail. Retrieve the embedded thumbnail of a TIFF or JPEG image" - "" - '(setq filename (skeleton-read "Filename? ")) - '(setq width (skeleton-read "Width? ")) - '(setq height (skeleton-read "Height? ")) - '(setq imagetype (skeleton-read "Image type? ")) - > "exif_thumbnail(" filename ", " width ", " height ", " imagetype ");" \n -) - diff --git a/skeleton/php-ext.el b/skeleton/php-ext.el deleted file mode 100644 index 1333d8f0..00000000 --- a/skeleton/php-ext.el +++ /dev/null @@ -1,132 +0,0 @@ -;;; php-ext.el --- PHP skeleton templates - -;; Copyright (C) 2015 David Arroyo Menéndez - -;; Author: David Arroyo Menéndez -;; Maintainer: David Arroyo Menéndez - -;; This file is free software; you can redistribute it and/or modify -;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation; either version 3, or (at your option) -;; any later version. - -;; This file is distributed in the hope that it will be useful, -;; but WITHOUT ANY WARRANTY; without even the implied warranty of -;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -;; GNU General Public License for more details. - -;; You should have received a copy of the GNU General Public License -;; along with GNU Emacs; see the file COPYING. If not, write to -;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -;; Boston, MA 02110-1301 USA, - -;; To install php-ext.el: - -;; (require 'php-ext) - -;; Description: -;; Php ext is some skeleton templates for extend php-mode - -;; Math functions - -(defvar php-ext-path - (if load-file-name - (file-name-directory load-file-name) - default-directory)) - -(load (concat php-ext-path "php-math.el")) - -;; Control Structures - -(load (concat php-ext-path "php-control-structures.el")) - -;; Classes Functions - -(load (concat php-ext-path "php-classobj.el")) - -;; Exceptions - -(load (concat php-ext-path "php-exceptions.el")) - -;; Handling strings - -(load (concat php-ext-path "php-strings.el")) - -;; Regular expression - -(load (concat php-ext-path "php-regex.el")) -(load (concat php-ext-path "php-pcre.el")) - -;; Handling Variables -;; http://php.net/manual/en/ref.var.php -;; file:///usr/share/doc/php-doc/html/ref.var.html - -(load (concat php-ext-path "php-var.el")) - -;; DOM -;; More see file:///usr/share/doc/php-doc/html/book.dom.html - -(load (concat php-ext-path "php-dom.el")) - -;; XML Parser -;; More see file:///usr/share/doc/php-doc/html/function.xml-parse-into-struct.html - -(load (concat php-ext-path "php-xmlparser.el")) - -;; XML Reader -;; More see file:///usr/share/doc/php-doc/html/book.xmlreader.html - -(load (concat php-ext-path "php-xmlreader.el")) - -;; Crack Functions - -(load (concat php-ext-path "php-crack.el")) - -;; Dio Functions - -(load (concat php-ext-path "php-dio.el")) - -;; Filesystems functions -;; file:///usr/share/doc/php-doc/html/ref.filesystem.html - -(load (concat php-ext-path "php-filesystem.el")) - -;; Graphic functions - -;; GD functions -;; file:///usr/share/doc/php-doc/html/ref.image.html -;; http://php.net/manual/en/ref.image.php - -(load (concat php-ext-path "php-gd.el")) - -;; Exif functions -;; http://php.net/manual/en/ref.exif.php -;; file:///usr/share/doc/php-doc/html/ref.exif.html - -(load (concat php-ext-path "php-exif.el")) - -;; Another functions - -(define-skeleton php-function - "Insert a function statement." - "" - '(setq function (skeleton-read "Function name? ")) \n - '(setq argument (skeleton-read "Argument? ")) \n - > "function " function "(" argument - ( "Another argument? %s: " - > ", " str ) - > ") {" \n - _ \n - > "}" -) - -(define-skeleton php-define - "Insert a define statement" - "" - '(setq variable (skeleton-read "Variable? ")) - '(setq value (skeleton-read "Value? ")) - "define(\"" variable "\",\"" value "\");") - -(provide 'php-ext) - -;;; php-ext.el ends here diff --git a/skeleton/php-filesystem.el b/skeleton/php-filesystem.el deleted file mode 100644 index 516bbf13..00000000 --- a/skeleton/php-filesystem.el +++ /dev/null @@ -1,590 +0,0 @@ -;; Copyright (C) 2015 David Arroyo Menéndez - -;; Author: David Arroyo Menéndez -;; Maintainer: David Arroyo Menéndez - -;; This file is free software; you can redistribute it and/or modify -;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation; either version 3, or (at your option) -;; any later version. - -;; This file is distributed in the hope that it will be useful, -;; but WITHOUT ANY WARRANTY; without even the implied warranty of -;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -;; GNU General Public License for more details. - -;; You should have received a copy of the GNU General Public License -;; along with GNU Emacs; see the file COPYING. If not, write to -;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -;; Boston, MA 02110-1301 USA, - -;; To install php-ext.el: -;; You can add (load "path/php-ext/php-ext.el") to your .emacs - -;; Filesystem Functions -;; http://php.net/manual/en/ref.filesystem.php -;; file:///usr/share/doc/php-doc/html/ref.filesystem.html - -(define-skeleton php-basename - "Insert an addcslashes statement" - "" - '(setq path (skeleton-read "Path: ")) - '(setq suffix (skeleton-read "Suffix? ")) - > "basename(" path ", " suffix ");" \n) - -(define-skeleton php-chgrp - "Insert a chgrp statemt" - "" - '(setq filename (skeleton-read "Filename: ")) - '(setq group (skeleton-read "Group: ")) - > "chgrp(" filename ", " group ");" \n -) - -(define-skeleton php-chmod - "Insert a chmod statement." - "" - '(setq filename (skeleton-read "Filename: ")) - '(setq perm (skeleton-read "Permissions: ")) - > "chmod(" filename ", " perm ");" \n -) - -(define-skeleton php-clearstatcache - "Insert a clearstatcache statement." - > "clearstatcache();" \n - ) - -(define-skeleton php-copy - "Insert a clearstatcache statement." - "" - '(setq file1 (skeleton-read "Filename 1: ")) - '(setq file2 (skeleton-read "Filename 2: ")) - > "copy(" file1 ", " file2 ");" \n - ) - -(define-skeleton php-dirname - "Insert a dirname statement." - "" - '(setq dir (skeleton-read "Dirname: ")) - > "dirname(" dir ");" \n - ) - -(define-skeleton php-disk_free_space - "Insert a disk_free_space statement." - "" - '(setq dir (skeleton-read "Directory: ")) - > "disk_free_space(" dir ");" \n - ) - -(define-skeleton php-disk_total_space - "Insert a disk_total_space statement." - "" - '(setq dir (skeleton-read "Directory: ")) - > "disk_total_space(" dir ");" \n - ) - -(define-skeleton php-fclose - "Insert a fclose statement. fclose closes an open file pointer" - "" - '(setq handle (skeleton-read "handle: ")) - > "fclose(" handle ");" \n - ) - -(define-skeleton php-feof - "Insert a feof statement. feof tests for end-of-file on a file pointer" - "" - '(setq file (skeleton-read "file: ")) - > "feof(" file ");" \n - ) - -(define-skeleton php-fflush - "Insert a fflush statement. fflush flushes the output to a file" - "" - '(setq file (skeleton-read "file: ")) - > "fflush(" file ");" \n - ) - -(define-skeleton php-fgetc - "Insert a fgetc statement. fgetc gets character from file pointer" - "" - '(setq handle (skeleton-read "handle: ")) - > "fgetc(" handle ");" \n - ) - -(define-skeleton php-fgetcsv - "Insert a fgetcsv statement. fgetcsv gets line from file pointer and parse for CSV fields" - "" - '(setq handle (skeleton-read "handle: ")) - '(setq length (skeleton-read "length: ")) - '(setq delimiter (skeleton-read "delimiter: ")) - '(setq enclosure (skeleton-read "enclosure: ")) - '(setq escape (skeleton-read "escape: ")) - > "fgetc(" handle ", " length ", " delimiter ", " enclosure ", " escape ");" \n - ) - -(define-skeleton php-fgets - "Insert a fgets statement. Fgets gets line from file pointer" - "" - '(setq handle (skeleton-read "handle: ")) - '(setq length (skeleton-read "length: ")) - > "fgets(" handle ", " length ");" \n - ) - -(define-skeleton php-fgetss - "Insert a fgetss statement. Fgets gets line from file pointer and strip HTML tags" - "" - '(setq handle (skeleton-read "handle: ")) - '(setq length (skeleton-read "length: ")) - '(setq allowable_tags (skeleton-read "allowable_tags: ")) - > "fgets(" handle ", " length ", " allowable_tags ");" \n - ) - -(define-skeleton php-file_exists - "Insert a file_exists statement." - "" - '(setq file (skeleton-read "file: ")) - > "file_exists(" file ");" \n - ) - -(define-skeleton php-file_get_contents - "Insert a file_get_contents statement. file_get_contents reads entire file into a string" - "" - '(setq filename (skeleton-read "filename: ")) - '(setq use_include_path (skeleton-read "use_include_path: ")) - '(setq resource (skeleton-read "resource: ")) - '(setq offset (skeleton-read "offset: ")) - '(setq maxlen (skeleton-read "maxlen: ")) - > "file_get_contents(" filename ", " use_include_path ", " resource ", " offset ", " maxlen ");" \n - ) - -(define-skeleton php-file_put_contents - "Insert a file_put_contents statement. file_put_contents writes a string to a file" - "" - '(setq filename (skeleton-read "filename: ")) - '(setq data (skeleton-read "data: ")) - '(setq flags (skeleton-read "flags: ")) - '(setq context (skeleton-read "context: ")) - > "file_put_contents(" filename ", " data ", " flags ", " context ");" \n - ) - -(define-skeleton php-file - "Insert a file statement. file reads a string into an array" - "" - '(setq filename (skeleton-read "filename: ")) - '(setq flags (skeleton-read "flags: ")) - '(setq context (skeleton-read "context: ")) - > "file(" filename ", " flags ", " context ");" \n - ) - -(define-skeleton php-fileatime - "Insert a fileatime statement. fileatime gets last access time of file" - "" - '(setq filename (skeleton-read "filename: ")) - > "fileatime(" filename ");" \n - ) - -(define-skeleton php-filectime - "Insert a filectime statement. filectime gets inode change time of file" - "" - '(setq filename (skeleton-read "filectime: ")) - > "filectime(" filename ");" \n - ) - -(define-skeleton php-fileinode - "Insert a fileinode statement. fileinode gets the file inode" - "" - '(setq filename (skeleton-read "fileinode: ")) - > "fileinode(" filename ");" \n - ) - -(define-skeleton php-filemtime - "Insert a filemtime statement. filemtime gets the file modification" - "" - '(setq filename (skeleton-read "filemtime: ")) - > "filemtime(" filename ");" \n - ) - -(define-skeleton php-fileowner - "Insert a fileowner statement. fileowner gets the file owner" - "" - '(setq filename (skeleton-read "fileowner: ")) - > "fileowner(" filename ");" \n - ) - -(define-skeleton php-fileperms - "Insert a fileperms statement. fileperms gets the file permissions" - "" - '(setq filename (skeleton-read "fileperms: ")) - > "fileperms(" filename ");" \n - ) - -(define-skeleton php-filesize - "Insert a filesize statement. filesize gets the size for the given file" - '(setq filename (skeleton-read "filesize: ")) - > "filesize(" filename ");" \n - ) - -(define-skeleton php-filetype - "Insert a filetype statement. filetype gets the type for the given file" - '(setq filename (skeleton-read "filetype: ")) - > "filetype(" filename ");" \n - ) - -(define-skeleton php-flock - "Insert a flock statement. flock is a portable advisory file locking" - "" - '(setq handle (skeleton-read "handle: ")) - '(setq operation (skeleton-read "operation: ")) - '(setq wouldblock (skeleton-read "wouldblock: ")) - > "flock(" handle ", " operation ", " wouldblock ");" \n - ) - -(define-skeleton php-fnmatch - "Insert a fnmatch statement. fnmatch match filename against a pattern" - "" - '(setq pattern (skeleton-read "pattern: ")) - '(setq string (skeleton-read "string: ")) - '(setq flags (skeleton-read "flags: ")) - > "fnmatch(" pattern ", " string ", " flags ");" \n -) - -(define-skeleton php-fopen - "Insert a fopen statement. fopen binds a named resource" - "" - '(setq filename (skeleton-read "filename: ")) - '(setq mode (skeleton-read "mode: ")) - '(setq use_include_path (skeleton-read "use_include_path: ")) - '(setq context (skeleton-read "context: ")) - > "fopen(" filename ", " mode ", " use_include_path ", " context ");" \n -) - -(define-skeleton php-fpassthru - "Insert a fpassthru statement. fpassthru output all remaining data on a file pointer" - "" - '(setq handle (skeleton-read "handle: ")) - > "fpassthru(" handle ");" \n -) - -(define-skeleton php-fputcsv - "Insert a fputcsv statement. fputcsv formats line as csv and write to file pointer" - "" - '(setq handle (skeleton-read "handle: ")) - '(setq fields (skeleton-read "fields: ")) - '(setq delimiter (skeleton-read "delimiter: ")) - '(setq enclosure (skeleton-read "enclosure: ")) - > "fputcsv(" handle ", " fields ", " delimiter ", " enclosure ");" \n -) - -(define-skeleton php-fread - "Insert a fread statement. Binary-safe file read" - "" - '(setq handle (skeleton-read "handle: ")) - '(setq length (skeleton-read "length: ")) - > "fread(" handle ", " length ");" \n -) - -(define-skeleton php-fscanf - "Insert a fscanf statement. fscanf parses input from a file according to a format" - "" - '(setq handle (skeleton-read "handle: ")) - '(setq format (skeleton-read "format: ")) - > "fscanf(" handle ", " format ");" \n -) - -(define-skeleton php-fseek - "Insert a fseek statement. fseek seeks on a file pointer." - "" - '(setq handle (skeleton-read "handle: ")) - '(setq offset (skeleton-read "offset: ")) - '(setq whence (skeleton-read "whence: ")) - > "fseek(" handle ", " offset ", " whence ");" \n -) - -(define-skeleton php-fstat - "Insert a fstat statement. fstat gets information about a file using an open file pointer" - "" - '(setq handle (skeleton-read "handle: ")) - > "fstat(" handle ");" \n -) - -(define-skeleton php-ftell - "Insert a ftell statement. ftell returns the current position of the file read/write pointer" - "" - '(setq handle (skeleton-read "handle: ")) - > "ftell(" handle ");" \n -) - -(define-skeleton php-ftruncate - "Insert a ftruncate statement. ftruncate truncates a file to a given length" - "" - '(setq handle (skeleton-read "handle: ")) - '(setq size (skeleton-read "size: ")) - > "ftruncate(" handle ", " size ");" \n -) - -(define-skeleton php-fwrite - "Insert a fwrite statement. Binary safe file write" - '(setq handle (skeleton-read "handle: ")) - '(setq string (skeleton-read "string: ")) - '(setq length (skeleton-read "length: ")) - > "fwrite(" handle ", " string ", " length ");" \n -) - -(define-skeleton php-glob - "Insert a glob statement. Find pathnames matching a pattern" - '(setq pattern (skeleton-read "pattern: ")) - '(setq flags (skeleton-read "flags: ")) - > "glob(" pattern ", " flags ");" \n -) - -(define-skeleton php-is_dir - "Insert a is_dir statement. is_dir tells whether the filename is a directory" - "" - '(setq filename (skeleton-read "filename: ")) - > "is_dir(" filename ");" \n -) - -(define-skeleton php-is_executable - "Insert a is_executable statement. is_executable tells whether the filename is a executable" - "" - '(setq filename (skeleton-read "filename: ")) - > "is_executable(" filename ");" \n -) - -(define-skeleton php-is_file - "Insert a is_file statement. is_file tells whether the filename is a regular file" - '(setq filename (skeleton-read "filename: ")) - > "is_file(" filename ");" \n -) - -(define-skeleton php-is_link - "Insert a is_link statement. is_link tells whether the filename is a symbolic link" - "" - '(setq filename (skeleton-read "filename: ")) - > "is_link(" filename ");" \n -) - -(define-skeleton php-is_readable - "Insert a is_readable statement. is_readable tells whether the filename is a readable" - "" - '(setq filename (skeleton-read "filename: ")) - > "is_readable(" filename ");" \n -) - -(define-skeleton php-is_uploaded_file - "Insert a is_uploaded_file statement. is_uploaded_file tells whether the filename is a executable" - "" - '(setq filename (skeleton-read "filename: ")) - > "is_uploaded_file(" filename ");" \n -) - -(define-skeleton php-is_writable - "Insert a is_writable statement. is_writable tells whether the filename is a writable" - "" - '(setq filename (skeleton-read "filename: ")) - > "is_writable(" filename ");" \n -) - -(define-skeleton php-lchgrp - "Insert a lchgrp statement. lchgrp changes group ownership of symlink" - "" - '(setq filename (skeleton-read "filename: ")) - '(setq group (skeleton-read "group: ")) - > "lchgrp(" filename ", " group ");" \n -) - -(define-skeleton php-lchown - "Insert a lchown statement. lchown changes user ownership of symlink" - "" - '(setq filename (skeleton-read "filename: ")) - '(setq user (skeleton-read "user: ")) - > "lchown(" filename ", " user ");" \n -) - -(define-skeleton php-link - "Insert a link statement. link creates a hard link" - "" - '(setq target (skeleton-read "target of the link: ")) - '(setq link (skeleton-read "link: ")) - > "link(" target ", " link ");" \n -) - -(define-skeleton php-linkinfo - "Insert a linkinfo statement. linkinfo gets information about a link" - "" - '(setq path (skeleton-read "path of the link: ")) - > "linkinfo(" path ");" \n -) - -(define-skeleton php-lstat - "Insert a lstat statement. lstat gives information about a symbolic link or file" - "" - '(setq path (skeleton-read "path of the link: ")) - > "lstat(" path ");" \n -) - -(define-skeleton php-mkdir - "Insert a mkdir statement. mkdir makes a directory" - "" - '(setq path (skeleton-read "path: ")) - '(setq mode (skeleton-read "permissions mode (numeric): ")) - '(setq recursive (skeleton-read "recursive: ")) - '(setq resource (skeleton-read "context: ")) - > "mkdir(" path ", " mode ", " recursive ", " resource ");" \n -) - -(define-skeleton php-move_uploaded_file - "Insert a move_uploaded_file statement. move an uploaded file to a new location" - "" - '(setq filename (skeleton-read "filename: ")) - '(setq destination (skeleton-read "destination: ")) - > "move_uploaded_file(" filename ", " destination ");" \n -) - -(define-skeleton php-parse_ini_file - "Insert a parse_ini_file statement. parse_ini_file parses a configuration file" - "" - '(setq filename (skeleton-read "filename: ")) - '(setq process_sections (skeleton-read "process sections: ")) - '(setq scanner_mode (skeleton-read "scanner mode: ")) - > "parse_ini_file(" filename ", " process_sections ", " scanner_mode ");" \n -) - -(define-skeleton php-parse_ini_string - "Insert a parse_ini_string statement. parse_ini_string parses a configuration string" - "" - '(setq string (skeleton-read "string: ")) - '(setq process_sections (skeleton-read "process sections: ")) - '(setq scanner_mode (skeleton-read "scanner mode: ")) - > "parse_ini_string(" string ", " process_sections ", " scanner_mode ");" \n -) - -(define-skeleton php-pathinfo - "Insert a pathinfo statement. pathinfo returns information about a file path" - "" - '(setq path (skeleton-read "path: ")) - '(setq options (skeleton-read "options: ")) - > "pathinfo(" path ", " options ");" \n -) - -(define-skeleton php-pclose - "Insert a pclose statement. pclose closes process file pointer" - "" - '(setq handle (skeleton-read "handle: ")) - > "pclose(" handle ");" \n -) - -(define-skeleton php-popen - "Insert a popen statement. popen opens process file pointer" - "" - '(setq command (skeleton-read "command: ")) - '(setq mode (skeleton-read "mode: ")) - > "popen(" command ", " mode ");" \n -) - -(define-skeleton php-readfile - "Insert a readfile statement. readfile outputs a file" - "" - '(setq filename (skeleton-read "filename: ")) - '(setq use_include_path (skeleton-read "use_include_path: ")) - '(setq context (skeleton-read "context: ")) - > "readfile(" filename ", " use_include_path ", " context ");" \n -) - -(define-skeleton php-readlink - "Insert a readlink statement. readlink returns the target of the symbolic link." - "" - '(setq path (skeleton-read "path: ")) - > "readlink(" path ");" \n -) - -(define-skeleton php-realpath_cache_get - "Insert a realpath_cache_get statement. Returns an array of realpath cache entries." - > "realpath_cache_get();" \n -) - -(define-skeleton php-realpath_cache_size - "Insert a realpath_cache_size statement. Get the amount of memory used by the realpath cache" - > "realpath_cache_size();" \n -) - - -(define-skeleton php-realpath - "Insert a realpath statement. realpath expands all symbolic links and resolves references to '/./', '/../' and extra '/' characters in the input path and returns the canonicalized absolute pathname." - "" - '(setq path (skeleton-read "path: ")) - > "realpath(" path ");" \n -) - -(define-skeleton php-rename - "Insert a rename statement. Renames a file or directory" - "" - '(setq oldname (skeleton-read "oldname: ")) - '(setq newname (skeleton-read "newname: ")) - '(setq context (skeleton-read "context: ")) - > "rename(" oldname ", " newname ", " context ");" \n -) - -(define-skeleton php-rewind - "Insert a rewind statement. Rewind the position of a file pointer" - "" - '(setq handle (skeleton-read "handle: ")) - > "rewind(" handle ");" \n -) - -(define-skeleton php-rmdir - "Insert a rmdir statement. Removes directory." - "" - '(setq dirname (skeleton-read "dirname: ")) - > "rmdir(" dirname ");" \n -) - -(define-skeleton php-stat - "Insert a stat statement. Gives information about a file." - '(setq filename (skeleton-read "filename: ")) - > "stat(" filename ");" \n -) - -(define-skeleton php-symlink - "Insert a symlink statement. symlink creates a symbolic link." - "" - '(setq target (skeleton-read "target: ")) - '(setq link (skeleton-read "link: ")) - > "symlink(" target ", " link ");" \n -) - -(define-skeleton php-tempnam - "Insert a tempname statement. tempnam creates file with unique file name." - "" - '(setq dir (skeleton-read "directory: ")) - '(setq prefix (skeleton-read "prefix: ")) - > "tempnam(" dir ", " prefix ");" \n -) - -(define-skeleton php-tmpfile - "Insert a tmpfile statement. tmpfile creates a temporary file." - > "tmpfile();" \n -) - -(define-skeleton php-touch - "Insert a touch statement. touch set access and modification time of file." - "" - '(setq filename (skeleton-read "filename: ")) - '(setq time (skeleton-read "time: ")) - '(setq atime (skeleton-read "atime: ")) - > "touch(" filename ", " time ", " atime ");" \n -) - -(define-skeleton php-umask - "Insert umask statement. Changes the current umask." - "" - '(setq mask (skeleton-read "mask: ")) - > "umask(" mask ");" \n -) - -(define-skeleton php-unlink - "Insert unlink statement. Deletes a file." - "" - '(setq filename (skeleton-read "filename: ")) - '(setq context (skeleton-read "context: ")) - > "unlink(" filename ", " context ");" \n -) diff --git a/skeleton/php-gd.el b/skeleton/php-gd.el deleted file mode 100644 index bde789f1..00000000 --- a/skeleton/php-gd.el +++ /dev/null @@ -1,1097 +0,0 @@ -;; Copyright (C) 2015 David Arroyo Menéndez - -;; Author: David Arroyo Menéndez -;; Maintainer: David Arroyo Menéndez - -;; This file is free software; you can redistribute it and/or modify -;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation; either version 3, or (at your option) -;; any later version. - -;; This file is distributed in the hope that it will be useful, -;; but WITHOUT ANY WARRANTY; without even the implied warranty of -;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -;; GNU General Public License for more details. - -;; You should have received a copy of the GNU General Public License -;; along with GNU Emacs; see the file COPYING. If not, write to -;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -;; Boston, MA 02110-1301 USA, - -;; GD functions -;; file:///usr/share/doc/php-doc/html/ref.image.html -;; http://php.net/manual/en/ref.image.php - -(define-skeleton php-gd_info - "Insert a gd_info statement. Retrieve information about the currently installed GD library" - "" - > "gd_info();" \n -) - -(define-skeleton php-getimagesize - "Insert a getimagesize statement." - "" - '(setq filename (skeleton-read "Filename? ")) - '(setq imageinfo (skeleton-read "Image info? ")) - > "getimagesize(" filename ", " imageinfo ");" \n -) - -(define-skeleton php-getimagesizefromstring - "Insert a getimagesizefromstring statement." - "" - '(setq imagedata (skeleton-read "Image data? ")) - '(setq imageinfo (skeleton-read "Image info? ")) - > "getimagesizefromstring(" imagedata ", " imageinfo ");" \n -) - -(define-skeleton php-image_type_to_extension - "Insert an image_type_to_extension statement. Get file extension for image type" - "" - '(setq imagetype (skeleton-read "Image type?")) - '(setq include_dot (skeleton-read "Include dot to the extension (TRUE | FALSE)")) - > "image_type_to_extension(" imagetype ", " include_dot ");" \n -) - -(define-skeleton php-image_type_to_mime_type - "Insert an image_type_to_mime_type statement" - "" - '(setq imagetype (skeleton-read "Image type?")) - > "image_type_to_mime_type(" imagetype ");" \n -) - -(define-skeleton php-image2wbmp - "Insert an image2wbmp statement. Output image to browser or file" - "" - '(setq filename (skeleton-read "Filename? ")) - '(setq image (skeleton-read "Image? ")) - '(setq treshold (skeleton-read "Treshold? ")) - > "image2wbmp(" filename ", " image ", " treshold ");" \n -) - -(define-skeleton php-imageaffine - "Insert an imageaffine statement." - "" - '(setq image (skeleton-read "Image? ")) - '(setq affine (skeleton-read "Affine array? ")) - '(setq clip (skeleton-read "Clip? ")) - > "imageaffine(" image ", " affine ", " clip ");" \n -) - -(define-skeleton php-imageaffinematrixconcat - "Insert an imageaffinematrixconcat statement" - "" - '(setq m1 (skeleton-read "Matrix 1? ")) - '(setq m2 (skeleton-read "Matrix 2? ")) - > "imageaffinematrixconcat(" m1 ", " m2 ");" \n -) - -(define-skeleton php-imageaffinematrixget - "Insert an imageaffinematrixget statement" - "" - '(setq type (skeleton-read "Type? ")) - '(setq options (skeleton-read "Options? ")) - > "imageaffinematrixget(" m1 ", " m2 ");" \n -) - -(define-skeleton php-imagealphablending - "Insert an imagealphablending statement" - "" - '(setq image (skeleton-read "Image? ")) - '(setq blendmode (skeleton-read "Blendmode? (TRUE | FALSE)")) - > "imagealphablending(" image ", " blendmode ");" \n -) - -(define-skeleton php-imageantialias - "Insert an imageantialias statement. Should antialias functions be used or not" - "" - '(setq image (skeleton-read "Image? ")) - '(setq enabled (skeleton-read "Enabled? (true | false) ")) - > "imageantialias(" image ", " enabled ");" \n -) - -(define-skeleton php-imagearc - "Insert an imagearc statement" - "" - '(setq image (skeleton-read "Image: ")) - '(setq cx (skeleton-read "x-coordinate of the center: ")) - '(setq cy (skeleton-read "y-coordinate of the center: ")) - '(setq width (skeleton-read "width: ")) - '(setq height (skeleton-read "height: ")) - '(setq start (skeleton-read "start: ")) - '(setq end (skeleton-read "end: ")) - '(setq color (skeleton-read "color: ")) - > "imagearc(" image ", " cx ", " cy ", " width ", " height ", " start ", " end ", " color ");" \n -) - -(define-skeleton php-imagechar - "Insert an imagechar statement" - "" - '(setq image (skeleton-read "Image: ")) - '(setq font (skeleton-read "Font: ")) - '(setq x (skeleton-read "x: ")) - '(setq y (skeleton-read "y: ")) - '(setq c (skeleton-read "c: ")) - '(setq color (skeleton-read "color: ")) - > "imagechar(" image ", " font ", " x ", " y ", " c ", " color ");" \n -) - -(define-skeleton php-imagecharup - "Insert an imagecharup statement" - "" - '(setq image (skeleton-read "Image: ")) - '(setq font (skeleton-read "Font: ")) - '(setq x (skeleton-read "x: ")) - '(setq y (skeleton-read "y: ")) - '(setq c (skeleton-read "c: ")) - '(setq color (skeleton-read "color: ")) - > "imagecharup(" image ", " font ", " x ", " y ", " c ", " color ");" \n -) - -(define-skeleton php-imagecolorallocate - "Insert an imagecolorallocate statement" - "" - '(setq image (skeleton-read "Image: ")) - '(setq red (skeleton-read "Red: ")) - '(setq green (skeleton-read "Green: ")) - '(setq blue (skeleton-read "Blue: ")) - > "imagecolorallocate(" image ", " red ", " green ", " blue ");" \n -) - -(define-skeleton php-imagecolorallocatealpha - "Insert an imagecolorallocatealpha statement" - "" - '(setq image (skeleton-read "Image: ")) - '(setq red (skeleton-read "Red: ")) - '(setq green (skeleton-read "Green: ")) - '(setq blue (skeleton-read "Blue: ")) - '(setq alpha (skeleton-read "Alpha: ")) - > "imagecolorallocatealpha(" image ", " red ", " green ", " blue ", " alpha ");" \n -) - -(define-skeleton php-imagecolorat - "Insert an imagecolorat statement" - "" - '(setq image (skeleton-read "Image: ")) - '(setq x (skeleton-read "x: ")) - '(setq y (skeleton-read "y: ")) - > "imagecolorat(" image ", " x ", " y ");" \n -) - -(define-skeleton php-imagecolorclosest - "Insert an imagecolorclosest statement. Get the index of the closest color to the specified color" - "" - '(setq image (skeleton-read "Image: ")) - '(setq red (skeleton-read "Red: ")) - '(setq green (skeleton-read "Green: ")) - '(setq blue (skeleton-read "Blue: ")) - > "imagecolorclosest(" image ", " red ", " green ", " blue ");" \n -) - -(define-skeleton php-imagecolorclosestalpha - "Insert an imagecolorclosest statement. Get the index of the closest color to the specified color" - "" - '(setq image (skeleton-read "Image: ")) - '(setq red (skeleton-read "Red: ")) - '(setq green (skeleton-read "Green: ")) - '(setq blue (skeleton-read "Blue: ")) - '(setq alpha (skeleton-read "Alpha: ")) - > "imagecolorclosestalpha(" image ", " red ", " green ", " blue ", " alpha ");" \n -) - -(define-skeleton php-imagecolorclosesthwb - "Insert an imagecolorclosesthwb statement. Get the index of the closest color to the specified color" - "" - '(setq image (skeleton-read "Image: ")) - '(setq red (skeleton-read "Red: ")) - '(setq green (skeleton-read "Green: ")) - '(setq blue (skeleton-read "Blue: ")) - > "imagecolorclosestalpha(" image ", " red ", " green ", " blue ");" \n -) - -(define-skeleton php-imagecolordeallocate - "Insert an imagecolordeallocate statement. De-allocate a color for an image" - "" - '(setq image (skeleton-read "Image: ")) - '(setq color (skeleton-read "color: ")) - > "imagecolordeallocate(" image ", " color ");" \n -) - -(define-skeleton php-imagecolorexact - "Insert an imagecolorexact statement. Get the index of the specified color" - "" - '(setq image (skeleton-read "Image: ")) - '(setq red (skeleton-read "Red: ")) - '(setq green (skeleton-read "Green: ")) - '(setq blue (skeleton-read "Blue: ")) - > "imagecolorexact(" image ", " red ", " green ", " blue ");" \n -) - -(define-skeleton php-imagecolorexactalpha - "Insert an imagecolorexact statement. Get the index of the specified color" - "" - '(setq image (skeleton-read "Image: ")) - '(setq red (skeleton-read "Red: ")) - '(setq green (skeleton-read "Green: ")) - '(setq blue (skeleton-read "Blue: ")) - '(setq alpha (skeleton-read "Alpha: ")) - > "imagecolorexact(" image ", " red ", " green ", " blue ", " alpha ");" \n -) - -(define-skeleton php-imagecolormatch - "Insert an imagecolormatch. Makes the colors of the palette version of an image more closely match the true color version" - '(setq image1 (skeleton-read "Image 1: ")) - '(setq image2 (skeleton-read "Image 2: ")) - > "imagecolormatch(" image1 ", " image2 ");" \n -) - -(define-skeleton php-imagecolorresolve - "Insert an imagecolorresolve statement. Get the index of the specified color" - "" - '(setq image (skeleton-read "Image: ")) - '(setq red (skeleton-read "Red: ")) - '(setq green (skeleton-read "Green: ")) - '(setq blue (skeleton-read "Blue: ")) - > "imagecolorresolve(" image ", " red ", " green ", " blue ");" \n -) - -(define-skeleton php-imagecolorresolvealpha - "Insert an imagecolorresolvealpha statement. Get the index of the specified color + alpha or it closest alternative" - "" - '(setq image (skeleton-read "Image: ")) - '(setq red (skeleton-read "Red: ")) - '(setq green (skeleton-read "Green: ")) - '(setq blue (skeleton-read "Blue: ")) - '(setq alpha (skeleton-read "Alpha: ")) - > "imagecolorresolvealpha(" image ", " red ", " green ", " blue ", " alpha ");" \n -) - -(define-skeleton php-imagecolorset - "Insert an imagecolorset statement. Set the color for the specified palette index" - "" - '(setq image (skeleton-read "Image: ")) - '(setq index (skeleton-read "Index: ")) - '(setq red (skeleton-read "Red: ")) - '(setq green (skeleton-read "Green: ")) - '(setq blue (skeleton-read "Blue: ")) - '(setq alpha (skeleton-read "Alpha: ")) - > "imagecolorset(" image ", " index ", " red ", " green ", " blue ", " alpha ");" \n -) - -(define-skeleton php-imagecolorsforindex - "Insert an imagecolorsforindex statement. Get the colors for an index" - "" - '(setq image (skeleton-read "Image: ")) - '(setq index (skeleton-read "Index: ")) - > "imagecolorsforindex(" image ", " index ");" \n -) - -(define-skeleton php-imagecolorstotal - "Insert an imagecolorstotal statement. Get the colors for an index" - "" - '(setq image (skeleton-read "Image: ")) - > "imagecolorstotal(" image ");" \n -) - -(define-skeleton php-imagecolortransparent - "Insert an imagecolortransparent statement. Sets the transparent color in the given image." - "" - '(setq image (skeleton-read "Image: ")) - '(setq color (skeleton-read "Color: ")) - > "imagecolortransparent(" image ", " color ");" \n -) - -(define-skeleton php-imageconvolution - "Insert an imageconvolution statement." - "" - '(setq image (skeleton-read "Image: ")) - '(setq matrix (skeleton-read "Matrix: ")) - '(setq div (skeleton-read "Divisor result of the convolution: ")) - '(setq offset (skeleton-read "Offset: ")) - > "imageconvolution(" image ", " matrix ", " div ", " offset ");" \n -) - -(define-skeleton php-imagecopy - "Insert an imagecopy statement." - "" - '(setq dst_im (skeleton-read "Destination image: ")) - '(setq src_im (skeleton-read "Source image: ")) - '(setq dst_x (skeleton-read "X coordinate of destination point: ")) - '(setq dst_y (skeleton-read "Y coordinate of destination point: ")) - '(setq src_x (skeleton-read "X coordinate of source point: ")) - '(setq src_y (skeleton-read "Y coordinate of source point: ")) - > "imagecopy(" dst_im ", " src_im ", " dst_x ", " dst_y ", " src_x ", " src_y ");" \n -) - -(define-skeleton php-imagecopymerge - "Insert an imagecopymerge statement." - "" - '(setq dst_im (skeleton-read "Destination image: ")) - '(setq src_im (skeleton-read "Source image: ")) - '(setq dst_x (skeleton-read "X coordinate of destination point: ")) - '(setq dst_y (skeleton-read "Y coordinate of destination point: ")) - '(setq src_x (skeleton-read "X coordinate of source point: ")) - '(setq src_y (skeleton-read "Y coordinate of source point: ")) - '(setq src_w (skeleton-read "Source width: ")) - '(setq src_h (skeleton-read "Source height: ")) - '(setq pct (skeleton-read "Pct: ")) - > "imagecopymerge(" dst_im ", " src_im ", " dst_x ", " dst_y ", " src_x ", " src_y ", " src_w ", " src_h ", " pct ");" \n -) - -(define-skeleton php-imagecopymergegray - "Insert an imagecopymergegray statement." - "" - '(setq dst_im (skeleton-read "Destination image: ")) - '(setq src_im (skeleton-read "Source image: ")) - '(setq dst_x (skeleton-read "X coordinate of destination point: ")) - '(setq dst_y (skeleton-read "Y coordinate of destination point: ")) - '(setq src_x (skeleton-read "X coordinate of source point: ")) - '(setq src_y (skeleton-read "Y coordinate of source point: ")) - '(setq src_w (skeleton-read "Source width: ")) - '(setq src_h (skeleton-read "Source height: ")) - '(setq pct (skeleton-read "Pct: ")) - > "imagecopymergegray(" dst_im ", " src_im ", " dst_x ", " dst_y ", " src_x ", " src_y ", " src_w ", " src_h ", " pct ");" \n -) - - -(define-skeleton php-imagecopyresampled - "Insert an imagecopyresampled statement." - "" - '(setq dst_im (skeleton-read "Destination image: ")) - '(setq src_im (skeleton-read "Source image: ")) - '(setq dst_x (skeleton-read "X coordinate of destination point: ")) - '(setq dst_y (skeleton-read "Y coordinate of destination point: ")) - '(setq src_x (skeleton-read "X coordinate of source point: ")) - '(setq src_y (skeleton-read "Y coordinate of source point: ")) - '(setq dst_w (skeleton-read "Destination width: ")) - '(setq dst_h (skeleton-read "Destination height: ")) - '(setq src_w (skeleton-read "Source width: ")) - '(setq src_h (skeleton-read "Source height: ")) - '(setq pct (skeleton-read "Pct: ")) - > "imagecopyresampled(" dst_im ", " src_im ", " dst_x ", " dst_y ", " src_x ", " src_y ", " dst_w ", " dst_h ", " src_w ", " src_h ", " pct ");" \n -) - -(define-skeleton php-imagecopyresized - "Insert an imagecopyresized statement." - "" - '(setq dst_im (skeleton-read "Destination image: ")) - '(setq src_im (skeleton-read "Source image: ")) - '(setq dst_x (skeleton-read "X coordinate of destination point: ")) - '(setq dst_y (skeleton-read "Y coordinate of destination point: ")) - '(setq src_x (skeleton-read "X coordinate of source point: ")) - '(setq src_y (skeleton-read "Y coordinate of source point: ")) - '(setq dst_w (skeleton-read "Destination width: ")) - '(setq dst_h (skeleton-read "Destination height: ")) - '(setq src_w (skeleton-read "Source width: ")) - '(setq src_h (skeleton-read "Source height: ")) - '(setq pct (skeleton-read "Pct: ")) - > "imagecopyresized(" dst_im ", " src_im ", " dst_x ", " dst_y ", " src_x ", " src_y ", " dst_w ", " dst_h ", " src_w ", " src_h ", " pct ");" \n -) - -(define-skeleton php-imagecreate - "Insert an imagecreate statement." - "" - '(setq width (skeleton-read "Width: ")) - '(setq height (skeleton-read "Height: ")) - > "imagecreate(" width ", " height ");" \n -) - -(define-skeleton php-imagecreatefromgd2 - "Insert an imagecreatefromgd2." - "" - '(setq filename (skeleton-read "Filename: ")) - > "imagecreatefromgd2(" filename ");" \n -) - -(define-skeleton php-imagecreatefromgd2part - "Insert an imagecreatefromgd2part" - "" - '(setq filename (skeleton-read "Filename: ")) - '(setq src_x (skeleton-read "X coordinate: ")) - '(setq src_y (skeleton-read "Y coordinate: ")) - '(setq width (skeleton-read "Width: ")) - '(setq height (skeleton-read "Height: ")) - > "imagecreatefromgd2part(" filename ", " src_x ", " src_y ", " width ", " height ");" \n -) - -(define-skeleton php-imagecreatefromgd - "Insert an imagecreatefromgd." - "" - '(setq filename (skeleton-read "Filename: ")) - > "imagecreatefromgd(" filename ");" \n -) - -(define-skeleton php-imagecreatefromgif - "Insert an imagecreatefromgif." - "" - '(setq filename (skeleton-read "Filename: ")) - > "imagecreatefromgif(" filename ");" \n -) - -(define-skeleton php-imagecreatefromjpeg - "Insert an imagecreatefromjpeg." - "" - '(setq filename (skeleton-read "Filename: ")) - > "imagecreatefromjpeg(" filename ");" \n -) - -(define-skeleton php-imagecreatefrompng - "Insert an imagecreatefromjpeg." - "" - '(setq filename (skeleton-read "Filename: ")) - > "imagecreatefromjpeg(" filename ");" \n -) - -(define-skeleton php-imagecreatefromstring - "Insert an imagecreatefromstring." - "" - '(setq string (skeleton-read "String: ")) - > "imagecreatefromstring(" string ");" \n -) - -(define-skeleton php-imagecreatefromwbmp - "Insert an imagecreatefromwbmp." - "" - '(setq filename (skeleton-read "Filename: ")) - > "imagecreatefromwbmp(" filename ");" \n -) - -(define-skeleton php-imagecreatefromwebp - "Insert an imagecreatefromwebp." - "" - '(setq filename (skeleton-read "Filename: ")) - > "imagecreatefromwebp(" filename ");" \n -) - -(define-skeleton php-imagecreatefromxbm - "Insert an imagecreatefromxbm." - "" - '(setq filename (skeleton-read "Filename: ")) - > "imagecreatefromxbm(" filename ");" \n -) - -(define-skeleton php-imagecreatefromxpm - "Insert an imagecreatefromxpm." - "" - '(setq filename (skeleton-read "Filename: ")) - > "imagecreatefromxpm(" filename ");" \n -) - -(define-skeleton php-imagecreatetruecolor - "Insert an imagecreatetruecolor." - "" - '(setq width (skeleton-read "Width: ")) - '(setq heigth (skeleton-read "Heigth: ")) - > "imagecreatetruecolor(" width ", " heigth ");" \n -) - -(define-skeleton php-imagecrop - "Insert an imagecrop." - "" - '(setq image (skeleton-read "Image: ")) - '(setq rect (skeleton-read "Array Rect: ")) - > "imagecrop(" image ", " rect " );" \n -) - -(define-skeleton php-imagecropauto - "Insert an imagecropauto statement." - "" - '(setq image (skeleton-read "Image: ")) - '(setq mode (skeleton-read "Mode: ")) - '(setq treshold (skeleton-read "Treshold: ")) - '(setq color (skeleton-read "Color: ")) - > "imagecropauto(" image ", " mode ", " treshold ", " color " );" \n -) - -(define-skeleton php-imagedashedline - "Insert a statement to draw a dahsed line" - "" - '(setq image (skeleton-read "Image: ")) - '(setq x1 (skeleton-read "Upper left X coordinate: ")) - '(setq y1 (skeleton-read "Upper left Y coordinate: ")) - '(setq x2 (skeleton-read "Bottom right X coordinate: ")) - '(setq y2 (skeleton-read "Bottom right Y coordinate: ")) - '(setq color (skeleton-read "Color: ")) - > "imagedashedline(" image ", " x1 ", " y1 ", " x2 ", " y2 ", " color ");" \n -) - -(define-skeleton php-imagedestroy - "Insert an imagedestroy statement." - "" - '(setq image (skeleton-read "Image: ")) - > "imagedestroy(" image " );" \n -) - -(define-skeleton php-imageellipse - "Insert an imageellipse statement." - "" - '(setq image (skeleton-read "Image: ")) - '(setq cx (skeleton-read "x-coordinate of the center: ")) - '(setq cy (skeleton-read "y-coordinate of the center: ")) - '(setq width (skeleton-read "the ellipse width: ")) - '(setq heigth (skeleton-read "the ellipse heigth: ")) - '(setq color (skeleton-read "the ellipse color: ")) - > "imageellipse(" image ", " cx ", " cy ", " width ", " heigth ", " color ");" \n -) - -(define-skeleton php-imagefill - "Insert an imagefill statement." - "" - '(setq image (skeleton-read "Image: ")) - '(setq x (skeleton-read "x-coordinate of start point: ")) - '(setq y (skeleton-read "y-coordinate of start point: ")) - '(setq color (skeleton-read "the fill color: ")) - > "imagefill(" image ", " x ", " y ", " color ");" \n -) - -(define-skeleton php-imagefilledarc - "Insert an imagefilledarc statement. Draw a partial arc and fill it" - "" - '(setq image (skeleton-read "image: ")) - '(setq cx (skeleton-read "x-coordinate of the center: ")) - '(setq cy (skeleton-read "y-coordinate of the center: ")) - '(setq width (skeleton-read "the arc width: ")) - '(setq heigth (skeleton-read "the arc heigth: ")) - '(setq start (skeleton-read "the arc start angle in degrees: ")) - '(setq end (skeleton-read "the arc end angle in degrees: ")) - '(setq color (skeleton-read "the ellipse color: ")) - '(setq style (skeleton-read "style: ")) - > "imagefilledarc(" image ", " cx ", " cy ", " width ", " heigth ", " start ", " end ", " color ", " style ");" \n -) - -(define-skeleton php-imagefilledellipse - "Insert an imagefilledarc statement. Draw a partial arc and fill it" - "" - '(setq image (skeleton-read "image: ")) - '(setq cx (skeleton-read "x-coordinate of the center: ")) - '(setq cy (skeleton-read "y-coordinate of the center: ")) - '(setq width (skeleton-read "the ellipse width: ")) - '(setq heigth (skeleton-read "the ellipse heigth: ")) - '(setq color (skeleton-read "the ellipse color: ")) - > "imagefilledellipse(" image ", " cx ", " cy ", " width ", " heigth ", " color ");" \n -) - -(define-skeleton php-imagefilledpolygon - "Insert an imagefilledpolygon statement. Creates a polygon filled with color." - "" - '(setq image (skeleton-read "Image: ")) - '(setq points (skeleton-read "Array of points determined by x and y: " )) - '(setq num_points (skeleton-read "Total number of vertices: ")) - '(setq color (skeleton-read "Color to fill: ")) - > "imagefilledpolygon(" image ", " points ", " num_points ", " color ");" \n -) - -(define-skeleton php-imagefilledrectangle - "Insert an imagefilledrectangle statement. Creates a rectangle filled with color" - "" - '(setq image (skeleton-read "Image: ")) - '(setq x1 (skeleton-read "X coordinate for point 1: ")) - '(setq y1 (skeleton-read "Y coordinate for point 1: ")) - '(setq x2 (skeleton-read "X coordinate for point 2: ")) - '(setq y2 (skeleton-read "Y coordinate for point 2: ")) - '(setq color (skeleton-read "Color to fill: ")) - > "imagefilledrectangle(" image ", " x1 ", " y1 ", " x2 ", " y2 ", " color ");" \n -) - -(define-skeleton php-imagefilltoborder - "Insert an imagefilltoborder statement." - "" - '(setq image (skeleton-read "Image: ")) - '(setq x (skeleton-read "X coordinate of start: ")) - '(setq y (skeleton-read "Y coordinate of start: ")) - '(setq border (skeleton-read "The border color: ")) - '(setq color (skeleton-read "Color to fill: ")) - > "imagefilltoborder(" x ", " y ", " border ", " color ");" \n -) - -(define-skeleton php-imagefilter - "Insert an imagefilter statement. Applies a filter to an image" - "" - '(setq image (skeleton-read "Image: ")) - '(setq filtertype (skeleton-read "Filter type: ")) - '(setq arg1 (skeleton-read "Arg 1: ")) - '(setq arg2 (skeleton-read "Arg 2: ")) - '(setq arg3 (skeleton-read "Arg 3: ")) - '(setq arg4 (skeleton-read "Arg 4: ")) - > "imagefilter(" image ", " filtertype ", " arg1 ", " arg2 ", " arg3 ", " arg4 ");" \n -) - -(define-skeleton php-imageflip - "Insert an imageflip statement. Flips an image using a given mode" - "" - '(setq image (skeleton-read "Image: ")) - '(setq mode (skeleton-read "Mode (IMG_FLIP_HORIZONTAL | IMG_FLIP_VERTICAL | IMG_FLIP_BOTH): ")) - > "imageflip(" image ", " mode ");" \n -) - -(define-skeleton php-imagefontheight - "Insert a get font height statement" - "" - '(setq font (skeleton-read "Font: ")) - > "imagefontheight(" font ");" \n -) - -(define-skeleton php-imagefontwidth - "Insert a get font width statement" - "" - '(setq font (skeleton-read "Font: ")) - > "imagefontwidth(" font ");" \n -) - -(define-skeleton php-imageftbbox - "Insert an imageftbbox statement" - "" - '(setq size (skeleton-read "Font size: ")) - '(setq angle (skeleton-read "Angle in degrees: ")) - '(setq fontfile (skeleton-read "The name of the TrueType font file (can be an URL): ")) - '(setq text (skeleton-read "The string to be measured: ")) - '(setq extrainfo (skeleton-read "Extra information: ")) - > "imageftbbox(" size ", " angle ", " fontfile ", " text ", " extrainfo ");" \n -) - -(define-skeleton php-imagefttext - "Insert an imagefttext statement" - "" - '(setq image (skeleton-read "Image: ")) - '(setq size (skeleton-read "Font size: ")) - '(setq angle (skeleton-read "Angle in degrees: ")) - '(setq x (skeleton-read "X: ")) - '(setq y (skeleton-read "Y: ")) - '(setq color (skeleton-read "color: ")) - '(setq fontfile (skeleton-read "The name of the TrueType font file (can be an URL): ")) - '(setq text (skeleton-read "The string to be measured: ")) - '(setq extrainfo (skeleton-read "Extra information: ")) - > "imagefttext(" image ", " size ", " angle ", " x ", " y ", " color ", " fontfile ", " text ", " extrainfo ");" \n -) - -(define-skeleton php-imagegammacorrect - "Insert an imagegammacorrect statement. Applies gamma correction." - "" - '(setq image (skeleton-read "Image: ")) - '(setq inputgamma (skeleton-read "Input gamma: ")) - '(setq outputgamma (skeleton-read "Output gamma: ")) - > "imagegammacorrect(" image ", " inputgamma ", " outputgamma ");" \n -) - -(define-skeleton php-imagegd2 - "Insert an imagegd2 statement. Output gd2 image to browser or file." - "" - '(setq image (skeleton-read "Image: ")) - '(setq filename (skeleton-read "Filename: ")) - '(setq chunk_size (skeleton-read "Chunk Size: ")) - '(setq type (skeleton-read "Type: ")) - > "imagegd2(" image ", " filename ", " chunk_size ", " type ");" \n -) - -(define-skeleton php-imagegd - "Insert an imagegd statement. Output g2 image to the given filename." - "" - '(setq image (skeleton-read "Image: ")) - '(setq filename (skeleton-read "Filename: ")) - > "imagegd(" image ", " filename ");" \n -) - -(define-skeleton php-imagegif - "Insert an imagegif statement. Output image to browser or file." - "" - '(setq image (skeleton-read "Image: ")) - '(setq filename (skeleton-read "Filename: ")) - > "imagegif(" image ", " filename ");" \n -) - -(define-skeleton php-imagegrabscreen - "Insert an imagegrabscreen statement. Captures the whole screen." - "" - > "imagegrabscreen();" \n -) - -(define-skeleton php-imagegrabwindow - "Insert an imagegrabwindow statement. Captures a window." - "" - '(setq window (skeleton-read "Window handle: ")) - '(setq client_area (skeleton-read "Client area: ")) - > "imagegrabwindow(" window ", " client_area ");" \n -) - -(define-skeleton php-imageinterlace - "Insert an imageinterlace statement. Enable or disable interlace" - "" - '(setq image (skeleton-read "Image: ")) - '(setq interlace (skeleton-read "Interlace: ")) - > "imageinterlace(" image ", " interlace ");" \n -) - -(define-skeleton php-imageistruecolor - "Insert an imageistruecolor statement. Finds whether an image is a truecolor image" - "" - '(setq image (skeleton-read "Resource Image: ")) - > "imageistruecolor(" image ");" \n -) - -(define-skeleton php-imagejpeg - "Insert an imagejpeg statement." - "" - '(setq image (skeleton-read "Resource Image: ")) - '(setq filename (skeleton-read "Filename: ")) - '(setq quality (skeleton-read "Quality: ")) - > "imagejpeg(" image ", " filename ", " quality ");" \n -) - -(define-skeleton php-imagelayereffect - "Insert an imagelayereffect statement." - "" - '(setq image (skeleton-read "Resource Image: ")) - '(setq effect (skeleton-read "Effect: ")) - > "imagelayereffect(" image ", " effect ");" \n -) - -(define-skeleton php-imageline - "Insert an imageline statement." - "" - '(setq image (skeleton-read "Resource Image: ")) - '(setq x1 (skeleton-read "X1: ")) - '(setq y1 (skeleton-read "Y1: ")) - '(setq x2 (skeleton-read "X2: ")) - '(setq y2 (skeleton-read "Y2: ")) - '(setq color (skeleton-read "Color: ")) - > "imageline(" image ", " x1 ", " y1 ", " x2 ", " y2 ", " color ");" \n -) - -(define-skeleton php-imageloadfont - "Load a new font." - "" - '(setq file (skeleton-read "File: ")) - > "imageloadfont(" file ");" \n -) - -(define-skeleton php-imagepalettecopy - "Copy the palette from one image to another." - "" - '(setq destination (skeleton-read "Destination: ")) - '(setq source (skeleton-read "Source: ")) - > "imagepalettecopy(" destination ", " source ");" \n -) - -(define-skeleton php-imagepalettetotruecolor - "Converts a palette based image to true color" - "" - '(setq source (skeleton-read "Source: ")) - > "imagepalettetotruecolor(" source ");" \n -) - -(define-skeleton php-imagepng - "Output a PNG image to either the browser or a file" - "" - '(setq image (skeleton-read "Resource Image: ")) - '(setq filename (skeleton-read "Filename: ")) - '(setq quality (skeleton-read "Quality: ")) - '(setq filters (skeleton-read "Filters: ")) - > "imagepng(" image ", " filename ", " quality ", " filters ");" \n -) - -(define-skeleton php-imagepolygon - "Insert an imagepolygon statement. It draws a polygon." - "" - '(setq image (skeleton-read "Resource Image: ")) - '(setq points (skeleton-read "Array of points: ")) - '(setq num_points (skeleton-read "Number of points: ")) - '(setq color (skeleton-read "Color: ")) - > "imagepolygon(" image ", " points ", " num_points ", " color ");" \n -) - -(define-skeleton php-imagepsbbox - "Insert an imagepsbbox statement. It gives the bounding box of a text rectangle using PostScript Type1 fonts" - "" - '(setq text (skeleton-read "Text: ")) - '(setq font (skeleton-read "Font: ")) - '(setq size (skeleton-read "Size: ")) - > "imagepsbbox(" text ", " font ", " size ");" \n -) - -(define-skeleton php-imagepsencodefont - "Insert an imagepsencodefont statement. It changes the character encoding vector of a font" - "" - '(setq font_index (skeleton-read "Font index: ")) - '(setq encodingfile (skeleton-read "Encoding file: ")) - > "imagepsencodefont(" font_index ", " encoding_file ");" \n -) - -(define-skeleton php-imagepsextendfont - "Insert an imagepsextendfont statement." - "" - '(setq font_index (skeleton-read "Font index: ")) - '(setq extend (skeleton-read "Extension value: ")) - > "imagepsextendfont(" font_index ", " extend ");" \n -) - -(define-skeleton php-imagepsfreefont - "Insert an imagepsfreefont statement." - "" - '(setq font_index (skeleton-read "Font index: ")) - > "imagepsfreefont(" font_index ");" \n -) - -(define-skeleton php-imagepsloadfont - "Insert an imagepsloadfont statement." - "" - '(setq filename (skeleton-read "Filename: ")) - > "imagepsloadfont(" filename ");" \n -) - -(define-skeleton php-imagepsslantfont - "Insert an imagepsslantfont statement." - "" - '(setq font_index (skeleton-read "Font index: ")) - '(setq slant (skeleton-read "Slant: ")) - > "imagepsslantfont(" font_index ", " slant ");" \n -) - -(define-skeleton php-imagepstext - "Insert an imagepstext statement. Draws a text over an image using PostScript Type1 fonts" - "" - '(setq image (skeleton-read "Resource Image: ")) - '(setq text (skeleton-read "Text: ")) - '(setq font_index (skeleton-read "Font index: ")) - '(setq size (skeleton-read "Size: ")) - '(setq foreground (skeleton-read "Foreground: ")) - '(setq background (skeleton-read "Background: ")) - '(setq x (skeleton-read "X: ")) - '(setq y (skeleton-read "Y: ")) - '(setq space (skeleton-read "Space: ")) - '(setq tightness (skeleton-read "Tightness: ")) - '(setq angle (skeleton-read "Angle: ")) - '(setq antialias_steps (skeleton-read "Antialias steps: ")) - > "imagepstext(" image ", " text ", " font_index ", " size ", " foreground ", " background ", " x ", " y ", " space ", " tightness ", " angle ", " antialias ");" \n -) - -(define-skeleton php-imagerectangle - "Insert an imagerectangle statement" - "" - '(setq image (skeleton-read "Resource Image: ")) - '(setq x1 (skeleton-read "X1: ")) - '(setq y1 (skeleton-read "Y1: ")) - '(setq x2 (skeleton-read "X2: ")) - '(setq y2 (skeleton-read "Y2: ")) - '(setq color (skeleton-read "Color: ")) - > "imagerectangle(" image ", " x1 ", " y1 ", " x2 ", " y2 ", " color ");" \n -) - -(define-skeleton php-imagerotate - "Insert an imagerotate statement. Rotate an image with a given angle." - "" - '(setq image (skeleton-read "Resource Image: ")) - '(setq angle (skeleton-read "Angle: ")) - '(setq bgd_color (skeleton-read "Color of the uncovered zone: ")) - '(setq ignore_transparent (skeleton-read "Ignore transparent? ")) - > "imagerotate(" image ", " angle ", " bgd_color ", " ignore_transparent ");" \n -) - -(define-skeleton php-imagesavealpha - "Insert an imagesavealpha statement." - "" - '(setq image (skeleton-read "Resource Image: ")) - '(setq saveflag (skeleton-read "Save Flag: ")) - > "imagesavealpha(" image ", " saveflag ");" \n -) - -(define-skeleton php-imagescale - "Insert an imagescale statement." - "" - '(setq image (skeleton-read "Resource Image: ")) - '(setq new_width (skeleton-read "New width: ")) - '(setq new_height (skeleton-read "New height: ")) - '(setq mode (skeleton-read "Mode: ")) - > "imagescale(" image ", " new_width ", " new_height ", " mode ");" \n -) - -(define-skeleton php-imagesetbrush - "Insert an imagesetbrush statement." - "" - '(setq image (skeleton-read "Resource Image: ")) - '(setq brush (skeleton-read "Resource Brush: ")) - > "imagesetbrush(" image ", " brush ");" \n -) - -(define-skeleton php-imagesetinterpolation - "Insert an imagesetinterpolation statement." - "" - '(setq image (skeleton-read "Resource Image: ")) - '(setq interpolation (skeleton-read "Interpolation Method: ")) - > "imagesetinterpolation(" image ", " interpolation ");" \n -) - -(define-skeleton php-imagesetpixel - "Insert an imagesetpixel statement." - "" - '(setq image (skeleton-read "Resource Image: ")) - '(setq x (skeleton-read "X: ")) - '(setq y (skeleton-read "Y: ")) - '(setq color (skeleton-read "Color: ")) - > "imagesetpixel(" image ", " x ", " y ", " color ");" \n -) - -(define-skeleton php-imagesetstyle - "Insert an imagesetstyle statement." - "" - '(setq image (skeleton-read "Resource Image: ")) - '(setq style (skeleton-read "Array style: ")) - > "imagesetstyle(" image ", " style ");" \n -) - -(define-skeleton php-imagesetthickness - "Insert an imagesetthickness statement." - "" - '(setq image (skeleton-read "Resource Image: ")) - '(setq thickness (skeleton-read "Array thickness: ")) - > "imagesetthickness(" image ", " thickness ");" \n -) - -(define-skeleton php-imagesettile - "Insert an imagesettile statement." - "" - '(setq image (skeleton-read "Resource Image: ")) - '(setq tile (skeleton-read "Resource Tile: ")) - > "imagesettile(" image ", " tile ");" \n -) - -(define-skeleton php-imagestring - "Insert an imagestring statement." - "" - '(setq image (skeleton-read "Resource Image: ")) - '(setq font (skeleton-read "Font: ")) - '(setq x (skeleton-read "X: ")) - '(setq y (skeleton-read "Y: ")) - '(setq string (skeleton-read "String: ")) - '(setq color (skeleton-read "Color: ")) - > "imagestring(" image ", " font ", " x ", " y ", " string ", " color ");" \n -) - -(define-skeleton php-imagestringup - "Insert an imagestring statement. Draws a string vertically" - "" - '(setq image (skeleton-read "Resource Image: ")) - '(setq font (skeleton-read "Font: ")) - '(setq x (skeleton-read "X: ")) - '(setq y (skeleton-read "Y: ")) - '(setq string (skeleton-read "String: ")) - '(setq color (skeleton-read "Color: ")) - > "imagestringup(" image ", " font ", " x ", " y ", " string ", " color ");" \n -) - -(define-skeleton php-imagesx - "Insert an imagesx statement. Get image width." - "" - '(setq image (skeleton-read "Resource Image: ")) - > "imagesx(" image ");" \n -) - -(define-skeleton php-imagesy - "Insert an imagesy statement. Get image heigth." - "" - '(setq image (skeleton-read "Resource Image: ")) - > "imagesx(" image ");" \n -) - -(define-skeleton php-imagetruecolortopalette - "Insert an imagetruecolortopalette statement. Convert a true color image to a palette image." - "" - '(setq image (skeleton-read "Resource Image: ")) - '(setq dither (skeleton-read "Dither: ")) - '(setq ncolors (skeleton-read "Maximum number of colors in the palette: ")) - > "imagetruecolortopalette(" image ", " dither ", " ncolors ");" \n -) - -(define-skeleton php-imagettfbbox - "Insert an imagettfbbox statement." - "" - '(setq size (skeleton-read "Size: ")) - '(setq angle (skeleton-read "Angle: ")) - '(setq fontfile (skeleton-read "The name of the TrueType font file: ")) - '(setq text (skeleton-read "String to be measured")) - > "imagettfbbox(" size ", " angle ", " fontfile ", " text ");" \n -) - -(define-skeleton php-imagettftext - "Insert an imagettftext statement." - "" - '(setq image (skeleton-read "Resource Image: ")) - '(setq size (skeleton-read "Size: ")) - '(setq angle (skeleton-read "Angle: ")) - '(setq x (skeleton-read "X: ")) - '(setq y (skeleton-read "Y: ")) - '(setq string (skeleton-read "String: ")) - '(setq color (skeleton-read "Color: ")) - '(setq fontfile (skeleton-read "Fontfile: ")) - '(setq text (skeleton-read "The text in UTF-8: ")) - > "imagettftext(" image ", " size ", " angle ", " x ", " y ", " string ", " color ", " fontfile ", " text ");" \n -) - -(define-skeleton php-imagetypes - "Insert an imagetypes statement." - "" - > "imagetypes();" -) - -(define-skeleton php-imagewbmp - "Insert an imagewbmp statement. Output image to browser or file" - "" - '(setq image (skeleton-read "Resource Image: ")) - '(setq filename (skeleton-read "Filename: ")) - '(setq foreground (skeleton-read "Foreground: ")) - > "imagewbmp(" image ", " filename ", " foreground ");" \n -) - -(define-skeleton php-imagewebp - "Insert an imagewebp statement." - "" - '(setq image (skeleton-read "Resource Image: ")) - '(setq filename (skeleton-read "Filename: ")) - > "imagewebp(" image ", " filename ");" \n -) - -(define-skeleton php-imagexbm - "Insert an imagexbm statement. Output an xbm image to browser or file" - "" - '(setq image (skeleton-read "Resource Image: ")) - '(setq filename (skeleton-read "Filename: ")) - '(setq foreground (skeleton-read "Foreground: ")) - > "imagexbm(" image ", " filename ", " foreground ");" \n -) - -(define-skeleton php-iptcembed - "Insert an iptcembed statement. Embeds a binary iptc data into a jpeg image" - "" - '(setq iptcdata (skeleton-read "The iptc data: ")) - '(setq jpeg_filename (skeleton-read "Path to jpeg image: ")) - '(setq spool (skeleton-read "Spool flag: ")) - > "iptcembed(" iptcdata ", " jpeg_filename ", " spool ");" \n -) - -(define-skeleton php-iptcparse - "Insert an iptcparse statement. Parse a binary IPTC block into single tags." - "" - '(setq iptcblock (skeleton-read "The iptc block: ")) - > "iptcparse(" iptcblock ");" \n -) - -(define-skeleton php-jpeg2wbmp - "Insert a jpeg2wbmp. Convert JPEG image file to WBMP image file" - "" - '(setq jpegname (skeleton-read "Path to jpeg: ")) - '(setq wbmpname (skeleton-read "Path to destination wbmp: ")) - '(setq dest_height (skeleton-read "Destination image height: ")) - '(setq dest_width (skeleton-read "Destination image width: ")) - '(setq treshold (skeleton-read "Treshold: ")) - > "jpeg2wbmp(" jpegname ", " wbmpname ", " dest_height ", " dest_width ", " treshold ");" \n -) - -(define-skeleton php-png2wbmp - "Insert a png2wbmp. Convert PNG image file to WBMP image file" - "" - '(setq pngname (skeleton-read "Path to png: ")) - '(setq wbmpname (skeleton-read "Path to destination wbmp: ")) - '(setq dest_height (skeleton-read "Destination image height: ")) - '(setq dest_width (skeleton-read "Destination image width: ")) - '(setq treshold (skeleton-read "Treshold: ")) - > "png2wbmp(" pngname ", " wbmpname ", " dest_height ", " dest_width ", " treshold ");" \n -) - diff --git a/skeleton/php-math.el b/skeleton/php-math.el deleted file mode 100644 index 677e74fc..00000000 --- a/skeleton/php-math.el +++ /dev/null @@ -1,349 +0,0 @@ -;; Copyright (C) 2015 David Arroyo Menéndez - -;; Author: David Arroyo Menéndez -;; Maintainer: David Arroyo Menéndez - -;; This file is free software; you can redistribute it and/or modify -;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation; either version 3, or (at your option) -;; any later version. - -;; This file is distributed in the hope that it will be useful, -;; but WITHOUT ANY WARRANTY; without even the implied warranty of -;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -;; GNU General Public License for more details. - -;; You should have received a copy of the GNU General Public License -;; along with GNU Emacs; see the file COPYING. If not, write to -;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -;; Boston, MA 02110-1301 USA, - -;; To install php-ext.el: -;; You can add (load "path/php-ext/php-ext.el") to your .emacs - -;; Description: -;; Php ext is some skeleton templates for extend php-mode - -;; Math functions -;; http://php.net/manual/en/ref.math.php -;; file:///usr/share/doc/php-doc/html/ref.math.html - -(define-skeleton php-abs - "Insert an abs statement" - "" - > "abs(" (skeleton-read "Number to round? ") ");" \n - ) - -(define-skeleton php-acos - "Insert an acos statement" - "" - > "acos(" (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-acosh - "Insert an acosh statement" - "" - > "acosh(" (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-asin - "Insert an asin statement" - "" - > "asin(" (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-asinh - "Insert an asinh statement" - "" - > "asinh(" (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-atan - "Insert an atan statement" - "" - > "atan(" (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-atan2 - "Insert an atan2 statement" - "" - > "atan2(" (skeleton-read "Number? ") ", " (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-atanh - "Insert an atanh statement" - "" - > "atanh(" (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-base_convert - "Insert a base_convert statement" - "" - > "base_convert(" (skeleton-read "Number? ") ", " (skeleton-read "Base number? ") ", " (skeleton-read "Base number? ") ");" \n -) - -(define-skeleton php-bcadd - "Insert a bcadd statement" - "" - > "bcadd(" (skeleton-read "Number? ") ", " (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-gmp_add - "Insert a bcadd statement" - "" - > "gmp_add(" (skeleton-read "Number? ") ", " (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-bindec - "Insert a bindec statement" - "" - > "bindec(" (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-ceil - "Insert a ceil statement" - "" - > "ceil(" (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-cos - "Insert a cos statement" - "" - > "cos(" (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-cosh - "Insert a cosh statement" - "" - > "cosh(" (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-decbin - "Insert a decbin statement" - "" - > "decbin(" (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-dechex - "Insert a dechex statement" - "" - > "dechex(" (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-decoct - "Insert a dechex statement" - "" - > "decoct(" (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-deg2rad - "Insert a dechex statement" - "" - > "deg2rad(" (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-exp - "Insert an exp statement" - "" - > "exp(" (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-expm1 - "Insert an expm1 statement" - "" - > "expm1(" (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-floor - "Insert a floor statement" - "" - > "floor(" (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-fmod - "Insert a fmod statement" - "" - > "fmod(" (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-getrandmax - "Insert an getrandmax statement" - "" - > "getrandmax(" (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-mt_rand - "Insert an mt_rand statement" - "" - > "mt_rand(" (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-mt_srand - "Insert an mt_rand statement" - "" - > "mt_srand(" (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-hexdec - "Insert a hexdec statement" - "" - > "hexdec(" (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-hypot - "Insert a hypot statement" - "" - > "hypot(" (skeleton-read "Number? ") ", " (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-is_finite - "Insert a is_finite statement" - "" - > "is_finite(" (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-is_infinite - "Insert a is_infinite statement" - "" - > "is_infinite(" (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-is_nan - "Insert a is_nan statement" - "" - > "is_nan(" (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-lcg_value - "Insert a lcg_value statement" - "" - > "lcg_value(" (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-log10 - "Insert a log10 statement" - "" - > "log10(" (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-log1p - "Insert a log1p statement" - "" - > "log1p(" (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-log - "Insert a log statement" - "" - > "log(" (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-max - "Insert a max statement" - "" - > "max(" (skeleton-read "Number? ") ", " (skeleton-read "Number? ") \n - ( "Another number %s: " - > ", " str) - > ");" \n -) - -(define-skeleton php-min - "Insert a min statement" - "" - > "min(" (skeleton-read "Number? ") ", " (skeleton-read "Number? ") \n - ( "Another number %s: " - > ", " str) - > ");" \n -) - -(define-skeleton php-mt_getrandmax - "Insert a mt_getrandmax statement" - "" - > "mt_getrandmax(); " \n -) - -(define-skeleton php-number_format - "Insert a number_format statement" - "" - '(setq number (skeleton-read "Number? ")) - > "number_format(" number ", " - ( "Another argument %s: " - > ", " str) -) - -(define-skeleton php-pi - "Insert a pi statement" - "" - > "pi();" \n -) - -(define-skeleton php-pow - "Insert a pow statement" - "" - '(setq base (skeleton-read "Base? ")) - '(setq exp (skeleton-read "Exponent? ")) - > "pow(" base ", " exp ");" \n -) - -(define-skeleton php-rad2deg - "Insert a pow statement" - "" - '(setq base (skeleton-read "Radians? ")) - '(setq exp (skeleton-read "Degrees? ")) - > "rad2deg(" base ");" \n -) - -(define-skeleton php-rand_weighted - "Insert an rand_weighted statement" - "" - > "rand_weighted(" (skeleton-read "Number? ") ");" \n -) - -(define-skeleton php-round - "Insert a round statement" - "" - '(setq number (skeleton-read "Number to round? ")) - > "round(" number ");" \n -) - -(define-skeleton php-sin - "Insert a sin statement" - "" - '(setq number (skeleton-read "Number? ")) - > "sin(" number ");" \n -) - -(define-skeleton php-sinh - "Insert a sin statement" - "" - '(setq number (skeleton-read "Number? ")) - > "sinh(" number ");" \n -) - -(define-skeleton php-sqrt - "Insert a sqrt statement" - "" - '(setq number (skeleton-read "Number? ")) - > "sqrt(" number ");" \n -) - -(define-skeleton php-srand - "Insert a sqrt statement" - "" - '(setq number (skeleton-read "Number? ")) - > "srand(" number ");" \n -) - -(define-skeleton php-tan - "Insert a tan statement" - "" - '(setq number (skeleton-read "Number? ")) - > "tan(" number ");" \n -) - -(define-skeleton php-tanh - "Insert a tan statement" - "" - '(setq number (skeleton-read "Number? ")) - > "tanh(" number ");" \n -) diff --git a/skeleton/php-pcre.el b/skeleton/php-pcre.el deleted file mode 100644 index cb939fa5..00000000 --- a/skeleton/php-pcre.el +++ /dev/null @@ -1,103 +0,0 @@ -;; Copyright (C) 2015 David Arroyo Menéndez - -;; Author: David Arroyo Menéndez -;; Maintainer: David Arroyo Menéndez - -;; This file is free software; you can redistribute it and/or modify -;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation; either version 3, or (at your option) -;; any later version. - -;; This file is distributed in the hope that it will be useful, -;; but WITHOUT ANY WARRANTY; without even the implied warranty of -;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -;; GNU General Public License for more details. - -;; You should have received a copy of the GNU General Public License -;; along with GNU Emacs; see the file COPYING. If not, write to -;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -;; Boston, MA 02110-1301 USA, - -;; file:///usr/share/doc/php-doc/html/ref.pcre.html - -(define-skeleton php-preg_filter - "Insert a preg_filter statement. preg_filter is identical to preg_replace except it only returns the (possibly transformed) subjects where there was a match." - "" - '(setq pattern (skeleton-read "Pattern: ")) - '(setq replacement (skeleton-read "Replacement: ")) - '(setq subject (skeleton-read "Subject: ")) - > "preg_filter(" pattern ", " replacement ", " subject ");" \n) - -(define-skeleton php-preg_grep - "Insert a preg_grep statement. preg_grep return array entries that match the pattern." - "" - '(setq pattern (skeleton-read "Pattern: ")) - '(setq input (skeleton-read "Input: ")) - > "preg_grep(" pattern ", " replacement ");" \n) - -(define-skeleton php-preg_last_error - "Insert a preg_last_error statement. Returns the error code of the last PCRE regex execution" - "" - > "preg_last_error();" \n) - - -(define-skeleton php-preg_match_all - "Insert a preg_match_all statement. Perform a global regular expression match" - "" - '(setq pattern (skeleton-read "Pattern: ")) - '(setq subject (skeleton-read "Input string: ")) - '(setq matches (skeleton-read "The array of all matches: ")) - '(setq flags (skeleton-read "Flags (PREG_PATTERN_ORDER | PREG_SET_ORDER | PREG_OFFSET_CAPTURE)")) - '(setq offset (skeleton-read "Offset: ")) - > "preg_match_all(" pattern ", " subject ", " matches ", " flags ", " offset ");" \n -) - -(define-skeleton php-preg_match - "Insert a preg_match statement. Perform a regular expression match" - '(setq pattern (skeleton-read "Pattern: ")) - '(setq subject (skeleton-read "Input string: ")) - '(setq matches (skeleton-read "The array of all matches: ")) - '(setq flags (skeleton-read "Flags (PREG_PATTERN_ORDER | PREG_SET_ORDER | PREG_OFFSET_CAPTURE)")) - '(setq offset (skeleton-read "Offset: ")) - > "preg_match(" pattern ", " subject ", " matches ", " flags ", " offset ");" \n -) - -(define-skeleton php-preg_quote - "Insert a preg_quote statement. Quote regular expression characters" - "" - '(setq str (skeleton-read "String: ")) - '(setq delimiter (skeleton-read "Delimiter: ")) - > "preg_quote(" str ", " delimiter ");" \n -) - -(define-skeleton php-preg_replace_callback - "Insert a preg_replace_callback statement." - "" - '(setq pattern (skeleton-read "Pattern: ")) - '(setq callback (skeleton-read "Callback: ")) - '(setq subject (skeleton-read "Subject: ")) - '(setq limit (skeleton-read "Limit: ")) - '(setq count (skeleton-read "Count: ")) - > "preg_replace_callback(" pattern ", " callback ", " subject ", " limit ", " count ");" \n -) - -(define-skeleton php-preg_replace - "Insert a preg_replace statement. Perform a regular expression search and replace" - "" - '(setq pattern (skeleton-read "Pattern: ")) - '(setq replacement (skeleton-read "Replacement: ")) - '(setq subject (skeleton-read "Subject: ")) - '(setq limit (skeleton-read "Limit: ")) - '(setq count (skeleton-read "Count: ")) - > "preg_replace_callback(" pattern ", " replacement ", " subject ", " limit ", " count ");" \n -) - -(define-skeleton php-preg_split - "Insert a preg_split statement. Split string by a regular expression" - "" - '(setq pattern (skeleton-read "Pattern: ")) - '(setq subject (skeleton-read "Subject: ")) - '(setq limit (skeleton-read "Limit: ")) - '(setq flags (skeleton-read "Flags: ")) - > "preg_split(" pattern ", " subject ", " limit ", " flags ");" \n -) diff --git a/skeleton/php-regex.el b/skeleton/php-regex.el deleted file mode 100644 index 9a099560..00000000 --- a/skeleton/php-regex.el +++ /dev/null @@ -1,82 +0,0 @@ -;; Copyright (C) 2015 David Arroyo Menéndez - -;; Author: David Arroyo Menéndez -;; Maintainer: David Arroyo Menéndez - -;; This file is free software; you can redistribute it and/or modify -;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation; either version 3, or (at your option) -;; any later version. - -;; This file is distributed in the hope that it will be useful, -;; but WITHOUT ANY WARRANTY; without even the implied warranty of -;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -;; GNU General Public License for more details. - -;; You should have received a copy of the GNU General Public License -;; along with GNU Emacs; see the file COPYING. If not, write to -;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -;; Boston, MA 02110-1301 USA, - -;; Regular expression -;; http://php.net/manual/en/ref.regex.php -;; file:///usr/share/doc/php-doc/html/ref.regex.html - -(define-skeleton php-ereg - "Insert an ereg statement" - "" - '(setq regexp (skeleton-read "Regexp? ")) - '(setq string (skeleton-read "String? ")) - > "ereg(" regexp ", " string ");" -) - -(define-skeleton php-ereg_replace - "Insert an eregi_replace statement" - "" - '(setq pattern (skeleton-read "Pattern? ")) - '(setq replacement (skeleton-read "Replacement? ")) - '(setq string (skeleton-read "String? ")) - > "ereg_replace(" pattern ", " replacement ", " string ");" -) - -(define-skeleton php-eregi - "Insert an eregi statement" - "" - '(setq regexp (skeleton-read "Regexp? ")) - '(setq string (skeleton-read "String? ")) - > "ereg(" regexp ", " string ");" -) - -(define-skeleton php-eregi_replace - "Insert an eregi_replace statement" - "" - '(setq pattern (skeleton-read "Pattern? ")) - '(setq replacement (skeleton-read "Replacement? ")) - '(setq string (skeleton-read "String? ")) - > "eregi_replace(" pattern ", " replacement ", " string ");" -) - -(define-skeleton php-split - "Insert a split statement" - "" - '(setq pattern (skeleton-read "Pattern: ")) - '(setq string (skeleton-read "String: ")) - '(setq limit (skeleton-read "Limit: ")) - > "split(" pattern ", " string ", " limit ");" \n -) - -(define-skeleton php-spliti - "Insert a split statement" - "" - '(setq pattern (skeleton-read "Pattern: ")) - '(setq string (skeleton-read "String: ")) - '(setq limit (skeleton-read "Limit: ")) - > "spliti(" pattern ", " string ", " limit ");" \n -) - -(define-skeleton php-sql_regcase - "Insert a DEPRECATED sql_regcase statement. Creates a regular expression for a case insensitive match" - "" - '(setq string (skeleton-read "String: ")) - > "sql_regcase(" string ");" \n -) diff --git a/skeleton/php-simplexml.el b/skeleton/php-simplexml.el deleted file mode 100644 index fa3c9fb1..00000000 --- a/skeleton/php-simplexml.el +++ /dev/null @@ -1,54 +0,0 @@ -;; Copyright (C) 2015 David Arroyo Menéndez - -;; Author: David Arroyo Menéndez -;; Maintainer: David Arroyo Menéndez - -;; This file is free software; you can redistribute it and/or modify -;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation; either version 3, or (at your option) -;; any later version. - -;; This file is distributed in the hope that it will be useful, -;; but WITHOUT ANY WARRANTY; without even the implied warranty of -;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -;; GNU General Public License for more details. - -;; You should have received a copy of the GNU General Public License -;; along with GNU Emacs; see the file COPYING. If not, write to -;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -;; Boston, MA 02110-1301 USA, - -;; Simple XML Functions -;; file:///usr/share/doc/php-doc/html/ref.simplexml.html -;; http://php.net/manual/en/ref.simplexml.php - -(define-skeleton php-simplexml_import_dom - "Insert a simplexml_import_dom statement." - "" - '(setq domnode (skeleton-read "domnode: ")) - '(setq class_name (skeleton-read "class_name: ")) - > "simplexml_import_dom(" domnode ", " class_name ");" \n -) - - -(define-skeleton php-simplexml_load_file - "Insert a simplexml_load_file statement." - "" - '(setq filename (skeleton-read "filename: ")) - '(setq class_name (skeleton-read "class_name: ")) - '(setq options (skeleton-read "options: ")) - '(setq ns (skeleton-read "ns: ")) - '(setq is_prefix (skeleton-read "is_prefix: ")) - > "simplexml_load_file(" filename ", " class_name ", " options ", " ns ", " is_prefix ");" \n -) - -(define-skeleton php-simplexml_load_string - "Insert a simplexml_load_string statement." - "" - '(setq data (skeleton-read "data: ")) - '(setq class_name (skeleton-read "class_name: ")) - '(setq options (skeleton-read "options: ")) - '(setq ns (skeleton-read "ns: ")) - '(setq is_prefix (skeleton-read "is_prefix: ")) - > "simplexml_load_string(" data ", " class_name ", " options ", " ns ", " is_prefix ");" \n - ) diff --git a/skeleton/php-strings.el b/skeleton/php-strings.el deleted file mode 100644 index 82866281..00000000 --- a/skeleton/php-strings.el +++ /dev/null @@ -1,768 +0,0 @@ -;; Copyright (C) 2015 David Arroyo Menéndez - -;; Author: David Arroyo Menéndez -;; Maintainer: David Arroyo Menéndez - -;; This file is free software; you can redistribute it and/or modify -;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation; either version 3, or (at your option) -;; any later version. - -;; This file is distributed in the hope that it will be useful, -;; but WITHOUT ANY WARRANTY; without even the implied warranty of -;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -;; GNU General Public License for more details. - -;; You should have received a copy of the GNU General Public License -;; along with GNU Emacs; see the file COPYING. If not, write to -;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -;; Boston, MA 02110-1301 USA, - -;; http://php.net/manual/en/ref.strings.php -;; file:///usr/share/doc/php-doc/html/ref.strings.html - -(define-skeleton php-addcslashes - "Insert an addcslashes statement" - "" - '(setq str (skeleton-read "String? ")) - '(setq charlist (skeleton-read "Charlist? ")) - > "addclslashes(" str ", " charlist ");" \n) - -(define-skeleton php-addslashes - "Insert an addcslashes statement" - "" - '(setq str (skeleton-read "String? ")) - > "addclslashes(" str ");" \n) - -(define-skeleton php-bin2hex - "Insert a bin2hex statement" - "" - '(setq str (skeleton-read "String? ")) - > "bin2hex(" str ");" \n) - -(define-skeleton php-chop - "Insert a chop statement. Alias of rtrim" - "" - '(setq str (skeleton-read "String: ")) - > "chop(" str ");" \n) - -(define-skeleton php-chr - "Insert a chr statement. Returns a specific character from ascii code" - "" - '(setq ascii (skeleton-read "String: ")) - > "chr(" ascii ");" \n) - -(define-skeleton php-chunk_split - "Insert a chunk_split statement. Split a a string into smaller chunks" - "" - '(setq body (skeleton-read "String: ")) - '(setq chunklen (skeleton-read "Chunk length: ")) - '(setq end (skeleton-read "End: ")) - > "chunk_split(" body ", " chunklen ", " end ");" \n -) - -(define-skeleton php-convert_cyr_string - "Insert a convert_cyr_string statement" - "" - '(setq str (skeleton-read "String? ")) - '(setq from (skeleton-read "From? ")) - '(setq to (skeleton-read "To? ")) - > "convert_cyr_string(" str ", " from ", " to ");" \n) - -(define-skeleton php-convert_uudecode - "Insert a bin2hex statement" - "" - '(setq str (skeleton-read "String? ")) - > "convert_uudecode(" str ");" \n) - -(define-skeleton php-convert_uuencode - "Insert a bin2hex statement" - "" - '(setq str (skeleton-read "String? ")) - > "convert_uuencode(" str ");" \n) - -(define-skeleton php-count_chars - "Insert a count_chars statement. Return information about characters used in a string" - "" - '(setq str (skeleton-read "String? ")) - '(setq mode (skeleton-read "Mode? ")) - > "count_chars(" str ", " mode ");" \n -) - -(define-skeleton php-crc32 - "Insert a crc32 statement. Calculates the crc32 polynomial of a string" - "" - '(setq str (skeleton-read "String: ")) - > "crc32(" str ");" \n -) - -(define-skeleton php-crypt - "Insert a crypt statement. One-way string hashing" - "" - '(setq str (skeleton-read "String: ")) - '(setq salt (skeleton-read "Salt: ")) - > "crypt(" str ", " salt ");" \n -) - -(define-skeleton php-echo - "Insert an echo statement" - "" - '(setq str (skeleton-read "String: ")) - > "echo '" str "';" \n) - -(define-skeleton php-explode - "Insert an explode statement" - "" - '(setq separator (skeleton-read "Explode separator? ")) - '(setq var (skeleton-read "Explode variable? ")) - > "explode('" separator "', " var ");" \n) - -(define-skeleton php-fprintf - "Insert a fprintf statement" - "" - '(setq handle (skeleton-read "Handle: ")) - '(setq format (skeleton-read "Format: ")) - '(setq args (skeleton-read "Args: ")) - > "fprintf(" handle ", " format ", " args ");" \n -) - -(define-skeleton php-get_html_translation_table - "Insert a get_html_translation_table statement. Returns the translation table used by htmlspecialchars and htmlentities" - "" - '(setq table (skeleton-read "Table: ")) - '(setq flags (skeleton-read "Flags: ")) - '(setq encoding (skeleton-read "Encoding: ")) - > "get_html_translation_table(" table ", " flags ", " encoding ");" \n -) - - -(define-skeleton php-hebrev - "Insert a hebrev statement. Convert logical Hebrew text to visual text with newline conversion" - "" - '(setq hebrew_text (skeleton-read "Hebrew text: ")) - '(setq max_chars_per_line (skeleton-read "Maximum number of characters per line: ")) - > "hebrev(" hebrew_text ", " max_chars_per_line ");" \n -) - -(define-skeleton php-hebrevc - "Insert a hebrevc statement. Convert logical Hebrew text to visual text with newline conversion" - "" - '(setq hebrew_text (skeleton-read "Hebrew text: ")) - '(setq max_chars_per_line (skeleton-read "Maximum number of characters per line: ")) - > "hebrevc(" hebrew_text ", " max_chars_per_line ");" \n -) - -(define-skeleton php-hex2bin - "Insert a hex2bin statement. Decodes a hexadecimally encoded binary string." - "" - '(setq data (skeleton-read "Data: ")) - > "hex2bin(" data ");" \n -) - -(define-skeleton php-html_entity_decode - "Insert a html_entity_decode statement. Convert special characters to HTML entities" - "" - '(setq string (skeleton-read "String: ")) - '(setq flags (skeleton-read "Flags: ")) - '(setq encoding (skeleton-read "Encoding: ")) - > "html_entity_decode(" string ", " flags ", " encoding ");" \n -) - -(define-skeleton php-htmlentities - "Insert a htmlentities statement. Convert all applicable characters to HTML entities" - "" - '(setq string (skeleton-read "String: ")) - '(setq flags (skeleton-read "Flags: ")) - '(setq encoding (skeleton-read "Encoding: ")) - > "htmlentities(" string ", " flags ", " encoding ");" \n -) - -(define-skeleton php-htmlspecialchars_decode - "Insert a htmlspecialchars_decode statement. Convert special HTML entities back to characters" - "" - '(setq string (skeleton-read "String: ")) - '(setq flags (skeleton-read "Flags: ")) - > "htmlspecialchars_decode(" string ", " flags ");" \n -) - -(define-skeleton php-htmlspecialchars - "Insert a htmlspecialchars_decode statement. Convert special HTML entities back to characters" - "" - '(setq string (skeleton-read "String: ")) - '(setq flags (skeleton-read "Flags: ")) - '(setq encoding (skeleton-read "Encoding: ")) - '(setq double_encode (skeleton-read "Double encode (true | false): ")) - > "htmlspecialchars_decode(" string ", " flags ");" \n -) - -(define-skeleton php-implode - "Insert an implode statement" - "" - '(setq separator (skeleton-read "Implode separator? ")) - '(setq var (skeleton-read "Implode variable? ")) - > "implode('" separator "', " var - (skeleton-read - > ", " str ) - > ");" - ) - -(define-skeleton php-join - "Insert an join statement" - "" - '(setq separator (skeleton-read "Join separator? ")) - '(setq var (skeleton-read "Join variable? ")) - > "join('" separator "', " var - (skeleton-read - > ", " str ) - > ");" - ) - -(define-skeleton php-lcfirst - "Insert a lcfirst statement. Make a string's first character lowercase" - "" - '(setq str (skeleton-read "String? ")) - > "lcfirst(" str ");" \n -) - -(define-skeleton php-levenshtein - "Insert a levenshtein statement. Calculate Levenshtein distance between two strings" - "" - '(setq str1 (skeleton-read "String? ")) - '(setq str2 (skeleton-read "String? ")) - > "levenshtein(" str1 ", " str2 ");" \n -) - -(define-skeleton php-localeconv - "Insert a localeconv statement." - > "localeconv();" \n -) - -(define-skeleton php-ltrim - "Insert a ltrim statement" - "" - '(setq str (skeleton-read "String? ")) - '(setq charlist (skeleton-read "Char list? ")) - > "ltrim(" str ", " charlist ");" \n) - -(define-skeleton php-md5_file - "Insert a md5_file statement" - "" - '(setq filename (skeleton-read "Filename? ")) - '(setq rawoutput (skeleton-read "Raw output? ")) - > "ltrim(" filename ", " rawoutput ");" \n) - -(define-skeleton php-md5 - "Insert a md5 statement" - "" - '(setq str (skeleton-read "String? ")) - '(setq rawoutput (skeleton-read "Raw output? ")) - > "md5(" str ", " rawoutput ");" \n) - -(define-skeleton php-metaphone - "Insert a metaphone statament" - "" - '(setq str (skeleton-read "String? ")) - '(setq phonemes (skeleton-read "Phonemes? ")) - > "metaphone(" str ", " phonemes ");" \n) - -(define-skeleton php-money_format - "Insert a money_format statement" - "" - '(setq str (skeleton-read "Format? ")) - '(setq number (skeleton-read "Number? ")) - > "money_format(" str ", " number ");" \n) - -(define-skeleton php-nl_langinfo - "Insert a nl_langinfo statement" - "" - '(setq str (skeleton-read "Item? ")) - > "nl_langinfo(" str ");" \n) - -(define-skeleton php-nl2br - "Insert a nl2br statement" - "" - '(setq str (skeleton-read "String? ")) - '(setq is_xhtml (skeleton-read "Is xhtml? ")) - > "nl2br(" str ", " is_xhtml ");" \n) - -(define-skeleton php-number_format - "Insert a number_format statement" - "" - '(setq float (skeleton-read "Float? ")) - '(setq number (skeleton-read "Number? ")) - > "number_format(" float ", " number ");" \n) - -(define-skeleton php-ord - "Insert an ord statement" - "" - '(setq char (skeleton-read "Character? ")) - > "ord(" str ");" \n) - -(define-skeleton php-parse_str - "Insert a parse_str statement" - "" - '(setq str (skeleton-read "String? ")) - '(setq arr (skeleton-read "Array? ")) - > "parse_str(" str ", " arr ");" \n) - -(define-skeleton php-print - "Insert a print statement" - "" - '(setq str (skeleton-read "String? ")) - > "print(" str ");" \n) - -(define-skeleton php-printf - "Insert a printf statement. Output a formatted string" - "" - '(setq str (skeleton-read "String? ")) - > "printf(" str ");" \n) - -(define-skeleton php-quoted_printable_decode - "Insert a quoted_printable_decode statement. Convert a quoted-printable string to an 8 bit string" - "" - '(setq str (skeleton-read "String? ")) - > "quoted_printable_decode(" str ");" \n) - - -(define-skeleton php-quoted_printable_encode - "Insert a quoted_printable_encode statement. Convert a 8 bit string to a quoted-printable string" - "" - '(setq str (skeleton-read "String? ")) - > "quoted_printable_encode(" str ");" \n) - -(define-skeleton php-quotemeta - "Insert a quotemeta statement. Quote meta characters" - "" - '(setq str (skeleton-read "String? ")) - > "quotemeta(" str ");" \n) - -(define-skeleton php-rtrim - "Insert a rtrim statement" - "" - '(setq str (skeleton-read "String? ")) - > "rtrim(" str ");" \n) - -(define-skeleton php-setlocale - "Insert a setlocale statement" - '(setq category (skeleton-read "Category? ")) - '(setq locale (skeleton-read "Locale? ")) - > "setlocale(" category ", " locale ");" \n -) - -(define-skeleton php-sha1_file - "Insert a sha1_file statement. Calculate the sha1 of a file" - "" - '(setq filename (skeleton-read "Filename? ")) - '(setq rawoutuput (skeleton-read "Rawoutuput? ")) - > "sha1_file(" filename ", " rawoutuput ");" \n -) - -(define-skeleton php-sha1 - "Insert a sha1 statement. Calculate the sha1 of a string" - "" - '(setq string (skeleton-read "String? ")) - '(setq rawoutuput (skeleton-read "Rawoutuput? ")) - > "sha1_file(" string ", " rawoutuput ");" \n -) - -(define-skeleton php-similar_text - "Insert a similar_text statement. Calculate the similarity between two words" - "" - '(setq first (skeleton-read "First string? ")) - '(setq second (skeleton-read "Second string? ")) - '(setq percentage (skeleton-read "Percentage? ")) - > "similar_text(" first ", " second ", " percentage ");" \n -) - -(define-skeleton php-soundex - "Insert a soundex statement. Calculates the soundex key of a string" - "" - '(setq str (skeleton-read "String? ")) - > "soundex(" str ");" \n -) - -(define-skeleton php-sprintf - "Insert a sprintf statement. Return a formatted string" - "" - '(setq str (skeleton-read "String? ")) - > "sprintf(" str ");" \n -) - -(define-skeleton php-sscanf - "Insert a sscanf statement. Parses input from a string according to a format" - "" - '(setq str (skeleton-read "String? ")) - '(setq format (skeleton-read "Format? ")) - > "sprintf(" str ", " format ");" \n -) - -(define-skeleton php-str_getcsv - "Insert a str_getcsv statement. Parse a CSV string into an array" - "" - '(setq input (skeleton-read "Input? ")) - '(setq delimiter (skeleton-read "Delimiter? ")) - '(setq enclosure (skeleton-read "Enclosure? ")) - '(setq escape (skeleton-read "Escape? ")) - > "str_getcsv(" input ", " delimiter ", " enclosure ", " escape ");" \n -) - -(define-skeleton php-str_ireplace - "Insert a str_ireplace statement. Case-insensitive version of str_replace." - "" - '(setq search (skeleton-read "Search? ")) - '(setq replace (skeleton-read "Replace? ")) - '(setq subject (skeleton-read "Subject? ")) - '(setq count (skeleton-read "Count? ")) - > "str_ireplace(" search ", " replace ", " subject ", " count ");" \n -) - -(define-skeleton php-str_pad - "Insert a str_pad statement. Pad a string to a certain length with another string" - "" - '(setq input (skeleton-read "Input? ")) - '(setq pad_length (skeleton-read "Pad length? ")) - '(setq pad_string (skeleton-read "Pad string? ")) - '(setq pad_type (skeleton-read "Pad type? ")) - > "str_pad(" input ", " pad_length ", " pad_string ", " pad_type ");" \n -) - -(define-skeleton php-str_repeat - "Insert a str_repeat statement. Repeat a string" - "" - '(setq input (skeleton-read "Input? ")) - '(setq multiplier (skeleton-read "Multiplier? ")) - > "str_repeat(" input ", " multiplier ");" \n -) - - -(define-skeleton php-str_rot13 - "Insert a str_rot13 statement" - "" - '(setq str (skeleton-read "String? ")) - > "str_rot13(" str ");" \n -) - -(define-skeleton php-str_shuffle - "Insert a str_shuffle statement" - "" - '(setq str (skeleton-read "String? ")) - > "str_shuffle(" str ");" \n -) - -(define-skeleton php-str_split - "Insert a str_shuffle statement" - "" - '(setq str (skeleton-read "String? ")) - '(setq split_length (skeleton-read "Split length? ")) - > "str_split(" str ", " split_length ");" \n -) - -(define-skeleton php-str_word_count - "Insert a str_word_count statement. Return information about words used in a string." - "" - '(setq str (skeleton-read "String? ")) - '(setq format (skeleton-read "Format? ")) - '(setq charlist (skeleton-read "Charlist? ")) - > "str_word_count(" str ", " format ", " charlist ");" \n -) - -(define-skeleton php-strcasecmp - "Insert a strcasecmp statement. Binary safe case-insensitive string comparison" - "" - '(setq str (skeleton-read "String? ")) - '(setq str2 (skeleton-read "String? ")) - > "strcasecmp(" str ", " str2 ");" \n -) - -(define-skeleton php-strcmp - "Insert a strcmp statement. Binary safe string comparison" - "" - '(setq str (skeleton-read "String? ")) - '(setq str2 (skeleton-read "String? ")) - > "strcmp(" str ", " str2 ");" \n -) - -(define-skeleton php-strcoll - "Insert a strcoll statement. Locale based string comparison" - "" - '(setq str (skeleton-read "String? ")) - '(setq str2 (skeleton-read "String? ")) - > "strcoll(" str ", " str2 ");" \n -) - -(define-skeleton php-strcspn - "Insert a strcspn statement. Find length of initial segment not matching mask" - "" - '(setq str (skeleton-read "String? ")) - '(setq str2 (skeleton-read "String? ")) - '(setq start (skeleton-read "The start position of the string? ")) - '(setq length (skeleton-read "The length of the string? ")) - > "strcspn(" str ", " str2 ");" \n -) - -(define-skeleton php-strip_tags - "Insert a strip_tags statement. Strip HTML and PHP tags from a string" - "" - '(setq str (skeleton-read "String? ")) - '(setq allowable_tags (skeleton-read "Allowable tags? ")) - > "strcoll(" str ", " allowable_tags ");" \n -) - -(define-skeleton php-stripslashes - "Insert a stripcslashes statement." - "" - '(setq str (skeleton-read "String? ")) - > "stripcslashes(" str ");" \n -) - -(define-skeleton php-stripcslashes - "Insert a stripcslashes statement. Find the numeric position of the first occurrence of needle in the haystack string. " - "" - '(setq haystack (skeleton-read "String haystack? ")) - '(setq needle (skeleton-read "String needle? ")) - '(setq offset (skeleton-read "Offset?")) - > "stripcslashes(" haystack ", " needle ", " offset ");" \n -) - -(define-skeleton php-stristr - "Insert a stristr statement. Case-insensitive strstr " - "" - '(setq haystack (skeleton-read "String haystack? ")) - '(setq needle (skeleton-read "String needle? ")) - '(setq before_needle (skeleton-read "Before needle?")) - > "stripcslashes(" haystack ", " needle ", " before_needle ");" \n -) - -(define-skeleton php-strlen - "Insert a strlen statement" - "" - '(setq str (skeleton-read "String? ")) - > "strlen(" str ");" \n) - -(define-skeleton php-strnatcasecmp - "Insert a strnatcasecmp statement" - "" - '(setq str (skeleton-read "String? ")) - '(setq str2 (skeleton-read "String? ")) - > "strnatcasecmp(" str "," str2 ");" \n) - -(define-skeleton php-strnatcmp - "Insert a strnatcasecmp statement. String comparisons using a natural order algorithm" - "" - '(setq str (skeleton-read "String? ")) - '(setq str2 (skeleton-read "String? ")) - > "strnatcmp(" str "," str2 ");" \n) - -(define-skeleton php-strncasecmp - "Insert a strncasecmp statement. Binary safe case-insensitive string comparison of the first n characters" - "" - '(setq str (skeleton-read "String? ")) - '(setq str2 (skeleton-read "String? ")) - '(setq len (skeleton-read "Length? ")) - > "strncasecmp(" str "," str2 ", " len ");" \n) - -(define-skeleton php-strncmp - "Insert a strncmp statement." - "" - '(setq str (skeleton-read "String? ")) - '(setq str2 (skeleton-read "String? ")) - '(setq len (skeleton-read "Length? ")) - > "strncmp(" str "," str2 ", " len ");" \n) - -(define-skeleton php-strpbrk - "Insert a strpbrk statement" - "" - '(setq haystack (skeleton-read "String? ")) - '(setq charlist (skeleton-read "Char list? ")) - > "strlen(" str ", " charlist ");" \n) - -(define-skeleton php-strpos - "Insert a strpos statement." - "" - '(setq haystack (skeleton-read "String haystack? ")) - '(setq needle (skeleton-read "String needle? ")) - '(setq offset (skeleton-read "Offset?")) - > "strpos(" haystack ", " needle ", " offset ");" \n -) - -(define-skeleton php-strrchr - "Insert a strrchr statement. Find the last occurrence of a character in a string" - "" - '(setq haystack (skeleton-read "String haystack? ")) - '(setq needle (skeleton-read "String needle? ")) - > "strrchr(" haystack ", " needle ");" \n -) - -(define-skeleton php-strrev - "Insert a strrev statement. Reverse a string" - "" - '(setq string (skeleton-read "String? ")) - > "strrev(" string ");" \n -) - -(define-skeleton php-strripos - "Insert a strripos statement. Find the position of the last occurrence of a case-insensitive substring in a string" - "" - '(setq haystack (skeleton-read "String haystack? ")) - '(setq needle (skeleton-read "String needle? ")) - '(setq offset (skeleton-read "Offset?")) - > "strripos(" string ", " needle ", " offset ");" \n -) - -(define-skeleton php-strrpos - "Insert a strripos statement. Find the position of the last occurrence of a substring in a string" - "" - '(setq haystack (skeleton-read "String haystack? ")) - '(setq needle (skeleton-read "String needle? ")) - '(setq offset (skeleton-read "Offset?")) - > "strrpos(" string ", " needle ", " offset ");" \n -) - -(define-skeleton php-strspn - "Insert a strspn statement." - "" - '(setq subject (skeleton-read "Subject? ")) - '(setq mask (skeleton-read "Mask? ")) - '(setq start (skeleton-read "Start? ")) - '(setq length (skeleton-read "Length? ")) - > "strspn(" subject ", " mask ", " start ", " length ");" \n -) - -(define-skeleton php-strstr - "Insert a strstr statement. Find the first occurrence of a stringFind the first occurrence of a string" - "" - '(setq haystack (skeleton-read "String haystack? ")) - '(setq needle (skeleton-read "String needle? ")) - '(setq before_needle (skeleton-read "Before needle?")) - > "strstr(" string ", " needle ", " before_needle ");" \n -) - -(define-skeleton php-strtok - "Insert a strlower statement" - "" - '(setq str (skeleton-read "String? ")) - '(setq token (skeleton-read "Token? ")) - > "strtolower(" str ");" \n) - - -(define-skeleton php-strtolower - "Insert a strlower statement" - "" - '(setq str (skeleton-read "String? ")) - > "strtolower(" str ");" \n) - -(define-skeleton php-strtotime - "Insert a strtotime statement" - "" - '(setq str (skeleton-read "String? ")) - > "strtotime(" str ");" \n) - -(define-skeleton php-strtoupper - "Insert a strtoupper statement" - "" - '(setq str (skeleton-read "String? ")) - > "strtoupper(" str ");" \n) - - -(define-skeleton php-strtr - "Insert a strtr statement" - "" - '(setq str (skeleton-read "String? ")) - '(setq from (skeleton-read "From? ")) - '(setq to (skeleton-read "To? ")) - > "strtr(" str ", " from ", " to ");" \n -) - -(define-skeleton php-substr_compare - "Insert a substr_compare" - "" - '(setq main_str (skeleton-read "The main string being compared? ")) - '(setq str (skeleton-read "The secondary string being compared? ")) - '(setq offset (skeleton-read "The start position for the comparison? ")) - '(setq length (skeleton-read "The length of the comparison? ")) - > "substr_compare(" main_str ", " str ", " offset ", " length ");" \n -) - -(define-skeleton php-substr_count - "Insert a substr_count" - "" - '(setq haystack (skeleton-read "String haystack? ")) - '(setq needle (skeleton-read "String needle? ")) - '(setq offset (skeleton-read "Offset?")) - '(setq length (skeleton-read "Length? ")) - > "substr_count(" haystack ", " needle ", " offset ", " length ");" \n -) - -(define-skeleton php-substr_replace - "Insert a substr_replace" - "" - '(setq str (skeleton-read "String? ")) - '(setq replacement (skeleton-read "Replacement? ")) - '(setq start (skeleton-read "Start? ")) - '(setq length (skeleton-read "Length? ")) - > "substr_replace(" str ", " replacement ", " start ", " length ");" \n -) - -(define-skeleton php-substr - "Insert a substr_replace statement" - "" - '(setq str (skeleton-read "String? ")) - '(setq start (skeleton-read "Start? ")) - '(setq length (skeleton-read "Length? ")) - > "substr(" str ", " start ", " length ");" \n -) - -(define-skeleton php-trim - "Insert a trim statement" - "" - '(setq str (skeleton-read "String? ")) - '(setq charlist (skeleton-read "Charlist? ")) - > "trim(" str ", " charlist ");" \n -) - -(define-skeleton php-ucfirst - "Insert a ucfirst statement" - "" - '(setq str (skeleton-read "String? ")) - > "ucfirst('" str "');" \n) - -(define-skeleton php-ucwords - "Insert a ucfirst statement" - "" - '(setq str (skeleton-read "String? ")) - > "ucwords('" str "');" \n) - -(define-skeleton php-vfprintf - "Insert a vfprintf statement" - "" - '(setq handle (skeleton-read "Handle? ")) - '(setq format (skeleton-read "Format? ")) - '(setq args (skeleton-read "Args? ")) - > "vfprintf(" handle ", " format ", " args ");" \n -) - -(define-skeleton php-vprintf - "Insert a vprintf statement" - "" - '(setq format (skeleton-read "Format? ")) - '(setq args (skeleton-read "Args? ")) - > "vprintf(" format ", " args ");" \n -) - -(define-skeleton php-vsprintf - "Insert a vsprintf statement" - "" - '(setq format (skeleton-read "Format? ")) - '(setq args (skeleton-read "Args? ")) - > "vsprintf(" format ", " args ");" \n -) - -(define-skeleton php-wordwrap - "Insert a wordwrap statement. Wraps a string to a given number of characters" - "" - '(setq str (skeleton-read "String? ")) - '(setq width (skeleton-read "Width? ")) - '(setq break (skeleton-read "Break? ")) - '(setq cut (skeleton-read "Cut? (TRUE | FALSE) ")) - > "wordwrap(" str ", " width ", " break ", " cut ");" \n -) diff --git a/skeleton/php-var.el b/skeleton/php-var.el deleted file mode 100644 index 6cd7e313..00000000 --- a/skeleton/php-var.el +++ /dev/null @@ -1,263 +0,0 @@ -;; Copyright (C) 2015 David Arroyo Menéndez - -;; Author: David Arroyo Menéndez -;; Maintainer: David Arroyo Menéndez - -;; This file is free software; you can redistribute it and/or modify -;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation; either version 3, or (at your option) -;; any later version. - -;; This file is distributed in the hope that it will be useful, -;; but WITHOUT ANY WARRANTY; without even the implied warranty of -;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -;; GNU General Public License for more details. - -;; You should have received a copy of the GNU General Public License -;; along with GNU Emacs; see the file COPYING. If not, write to -;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -;; Boston, MA 02110-1301 USA, - -;; Variable handling functions -;; http://php.net/manual/en/ref.var.php -;; file:///usr/share/doc/php-doc/html/ref.var.html - -(define-skeleton php-boolval - "Insert a boolval statement" - "" - '(setq variable (skeleton-read "Variable? ")) - "boolval(" variable ");" -) - -(define-skeleton php-debug_zval_dump - "Insert a debug_zval_dump" - "" - '(setq variable (skeleton-read "Variable: ")) - "debug_zval_dump(" variable ");" \n -) - -(define-skeleton php-empty - "Insert an empty statement" - "" - '(setq variable (skeleton-read "Variable? ")) - "empty(" variable ");" -) - -(define-skeleton php-floatval - "Insert a floatval statement. Gets the float value of a variable" - "" - '(setq variable (skeleton-read "Variable: ")) - > "floatval(" variable ");" \n -) - -(define-skeleton php-get_defined_vars - "Insert a get_defined_vars statement. Returns an array of all defined variables" - > "get_defined_vars();" \n -) - -(define-skeleton php-get_resource_type - "Insert a get_resource_type statement. Returns the resource type" - "" - '(setq variable (skeleton-read "Variable: ")) - > "get_resource_type(" variable ");" \n -) - -(define-skeleton php-gettype - "Insert a gettype statement. Returns the type of variable" - "" - '(setq variable (skeleton-read "Variable: ")) - > "gettype(" variable ");" \n -) - -(define-skeleton php-import_request_variables - "Insert an import_request_variables statement. Import GET/POST/Cookie variables into the global scope" - "" - '(setq types (skeleton-read "Types: ")) - '(setq prefix (skeleton-read "Prefix: ")) - > "import_request_variables(" types ", " prefix ");" \n -) - -(define-skeleton php-intval - "Insert an intval statement." - "" - '(setq variable (skeleton-read "Variable: ")) - '(setq base (skeleton-read "Base: ")) - > "intval(" variable ", " base ");" \n -) - -(define-skeleton php-is_array - "Insert an is_array statement" - "" - '(setq variable (skeleton-read "Variable: ")) - > "is_array(" variable ");" \n -) - -(define-skeleton php-is_bool - "Insert an is_bool statement" - "" - '(setq variable (skeleton-read "Variable: ")) - > "is_bool(" variable ");" \n -) - -(define-skeleton php-is_callable - "Insert an is_callable statement" - "" - '(setq variable (skeleton-read "Variable: ")) - > "is_callable(" variable ");" \n -) - -(define-skeleton php-is_double - "Insert an is_double statement" - "" - '(setq variable (skeleton-read "Variable: ")) - > "is_double(" variable ");" \n -) - -(define-skeleton php-is_float - "Insert an is_float statement" - "" - '(setq variable (skeleton-read "Variable: ")) - > "is_float(" variable ");" \n -) - -(define-skeleton php-is_int - "Insert an is_int statement" - "" - '(setq variable (skeleton-read "Variable: ")) - > "is_int(" variable ");" \n -) - -(define-skeleton php-is_integer - "Insert an is_integer statement" - "" - '(setq variable (skeleton-read "Variable: ")) - > "is_integer(" variable ");" \n -) - -(define-skeleton php-is_long - "Insert an is_long statement" - "" - '(setq variable (skeleton-read "Variable: ")) - > "is_long(" variable ");" \n -) - -(define-skeleton php-is_null - "Insert an is_null statement" - "" - '(setq variable (skeleton-read "Variable: ")) - > "is_null(" variable ");" \n -) - -(define-skeleton php-is_numeric - "Insert an is_numeric statement" - "" - '(setq variable (skeleton-read "Variable: ")) - > "is_numeric(" variable ");" \n -) - -(define-skeleton php-is_object - "Insert an is_object statement" - "" - '(setq variable (skeleton-read "Variable: ")) - > "is_object(" variable ");" \n -) - -(define-skeleton php-is_real - "Insert an is_real statement" - "" - '(setq variable (skeleton-read "Variable: ")) - > "is_real(" variable ");" \n -) - -(define-skeleton php-is_resource - "Insert an is_resource statement" - "" - '(setq variable (skeleton-read "Variable: ")) - > "is_resource(" variable ");" \n -) - -(define-skeleton php-is_scalar - "Insert an is_scalar statement" - "" - '(setq variable (skeleton-read "Variable: ")) - > "is_scalar(" variable ");" \n -) - -(define-skeleton php-is_string - "Insert an is_string statement" - "" - '(setq variable (skeleton-read "Variable: ")) - > "is_string(" variable ");" \n -) - -(define-skeleton php-isset - "Insert an isset statement" - "" - '(setq variable (skeleton-read "Variable: ")) - > "isset(" variable ");" \n -) - -(define-skeleton php-print_r - "Insert a print_r statement" - "" - '(setq expression (skeleton-read "Expression: ")) - '(setq return (skeleton-read "Return (true | false): ")) - > "print_r(" expression ", " return ");" -) - -(define-skeleton php-serialize - "Insert an serialize statement. Generates a storable representation of a value -" - "" - '(setq variable (skeleton-read "Variable: ")) - > "serialize(" variable ");" \n -) - -(define-skeleton php-settype - "Insert a settype statement. Set the type of a variable" - "" - '(setq variable (skeleton-read "Variable: ")) - '(setq type (skeleton-read "Type: ")) - > "settype(" variable ", " type ");" \n -) - -(define-skeleton php-strval - "Insert a strval statement. Get string value of a variable" - "" - '(setq variable (skeleton-read "Variable: ")) - > "strval(" variable ");" \n -) - -(define-skeleton php-unserialize - "Insert an unserialize statement. Creates a php value from a stored representation" - "" - '(setq variable (skeleton-read "Variable: ")) - > "unserialize(" variable ");" \n -) - -(define-skeleton php-unset - "Insert an unset statement. Unset a given variable." - "" - '(setq variable (skeleton-read "Variable: ")) - > "unset(" variable ");" \n -) - -(define-skeleton php-var_dump - "Insert a var_dump statement" - "" - '(setq variable (skeleton-read "Variable? ")) - > "var_dump(" variable - ( "Other variable? %s: " - > ", " str ) - > ");" -) - -(define-skeleton php-var_export - "Insert a var_export statement" - "" - '(setq variable (skeleton-read "Variable? ")) - '(setq return (skeleton-read "Return? ")) - > "var_export(" variable ", " return ");" \n -) - - diff --git a/skeleton/php-xmlparser.el b/skeleton/php-xmlparser.el deleted file mode 100644 index e9a394af..00000000 --- a/skeleton/php-xmlparser.el +++ /dev/null @@ -1,194 +0,0 @@ -;; Copyright (C) 2015 David Arroyo Menéndez - -;; Author: David Arroyo Menéndez -;; Maintainer: David Arroyo Menéndez - -;; This file is free software; you can redistribute it and/or modify -;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation; either version 3, or (at your option) -;; any later version. - -;; This file is distributed in the hope that it will be useful, -;; but WITHOUT ANY WARRANTY; without even the implied warranty of -;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -;; GNU General Public License for more details. - -;; You should have received a copy of the GNU General Public License -;; along with GNU Emacs; see the file COPYING. If not, write to -;; the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -;; Boston, MA 02110-1301 USA, - -;; XML Parser -;; More see file:///usr/share/doc/php-doc/html/function.xml-parse-into-struct.html -;; http://php.net/manual/en/book.xml.php - -(define-skeleton php-utf8_decode - "Insert a utf8_decode statement" - "" - > "utf8_decode(" (skeleton-read "An utf-8 string ") ");" \n -) - -(define-skeleton php-utf8_encode - "Insert a utf8_encode statement" - "" - > "utf8_encode(" (skeleton-read "An iso-8859-1 string ") ");" \n -) - -(define-skeleton php-xml_error_string - "Insert a xml_error_string statement" - "" - > "xml_error_string(" (skeleton-read "Code? ") ");" \n -) - -(define-skeleton php-xml_get_current_byte_index - "Insert a xml_get_current_byte_index" - "" - > "xml_get_current_byte_index(" (skeleton-read "Parser? ") ");" \n -) - -(define-skeleton php-xml-get_current_column_number - "Insert a xml_get_current_column_number" - "" - > "xml_get_current_column_number(" (skeleton-read "Parser? ") ");" \n -) - -(define-skeleton php-xml-get_current_line_number - "Insert a xml_get_current_line_number" - "" - > "xml_get_current_line_number(" (skeleton-read "Parser? ") ");" \n -) - -(define-skeleton php-xml-get_error_code - "Insert a xml_get_error_code" - "" - > "xml_get_error_code(" (skeleton-read "Parser? ") ");" \n -) - -(define-skeleton php-xml_parse - "Insert a xml_parse" - "" - > "xml_parse(" (skeleton-read "Parser? ") ", " - > (skeleton-read "Data? ") - > ("Is final? " ", " str) _ ");") - -(define-skeleton php-xml_parser_create_ns - "Insert a xml_parser_create_ns statement. Create an XML parser with namespace support." - "" - '(setq encoding (skeleton-read "encoding: ")) - '(setq separator (skeleton-read "separator: ")) - > "xml_parser_create_ns(" encoding ", " separator ");" \n -) - -(define-skeleton php-xml_parser_create - "Insert a xml_parser_create statement." - "" - '(setq encoding (skeleton-read "encoding: ")) - > "xml_parser_create(" encoding ");" \n -) - -(define-skeleton php-xml_parser_free - "Insert a xml_parser_free statement." - "" - '(setq parser (skeleton-read "parser: ")) - > "xml_parser_free(" parser ");" \n -) - -(define-skeleton php-xml_parser_get_option - "Insert a xml_parser_get_option statement." - "" - '(setq parser (skeleton-read "parser: ")) - '(setq option (skeleton-read "option: ")) - > "xml_parser_get_option(" parser ", " option ");" \n -) - -(define-skeleton php-xml_parser_set_option - "Insert a xml_parser_set_option statement." - "" - '(setq parser (skeleton-read "parser: ")) - '(setq option (skeleton-read "option: ")) - '(setq value (skeleton-read "value: ")) - > "xml_parser_set_option(" parser ", " option ", " value ");" \n -) - -(define-skeleton php-xml_set_character_data_handler - "Insert a xml_set_character_data_handler statement." - "" - '(setq parser (skeleton-read "parser: ")) - '(setq handler (skeleton-read "handler: ")) - > "xml_set_character_data_handler(" parser ", " handler ");" \n -) - -(define-skeleton php-xml_set_default_handler - "Insert a xml_set_default_handler statement." - "" - '(setq parser (skeleton-read "parser: ")) - '(setq handler (skeleton-read "handler: ")) - > "xml_set_default_handler(" parser ", " handler ");" \n -) - -(define-skeleton php-xml_set_element_handler - "Insert a xml_set_element_handler statement." - "" - '(setq parser (skeleton-read "parser: ")) - '(setq start_element_handler (skeleton-read "start_element_handler: ")) - '(setq end_element_handler (skeleton-read "end_element_handler: ")) - > "xml_set_element_handler(" parser ", " start_element_handler ", " end_element_handler ");" \n -) - -(define-skeleton php-xml_set_end_namespace_decl_handler - "Insert a xml_set_end_namespace_decl_handler statement. Set up end namespace declaration handler " - "" - '(setq parser (skeleton-read "parser: ")) - '(setq handler (skeleton-read "handler: ")) - > "xml_set_end_namespace_decl_handler(" parser ", " handler ");" \n -) - - -(define-skeleton php-xml_set_external_entity_ref_handler - "Insert a xml_set_external_entity_ref_handler statement." - "" - '(setq parser (skeleton-read "parser: ")) - '(setq handler (skeleton-read "handler: ")) - > "xml_set_external_entity_ref_handler(" parser ", " handler ");" \n -) - -(define-skeleton php-xml_set_notation_decl_handler - "Insert a xml_set_notation_decl_handler statement." - "" - '(setq parser (skeleton-read "parser: ")) - '(setq handler (skeleton-read "handler: ")) - > "xml_set_notation_decl_handler(" parser ", " handler ");" \n -) - - -(define-skeleton php-xml_set_object - "Insert a xml_set_object statement. Use XML Parser within an object" - "" - '(setq parser (skeleton-read "parser: ")) - '(setq object (skeleton-read "object: ")) - > "xml_set_object(" parser ", " object ");" \n -) - -(define-skeleton php-xml_set_processing_instruction_handler - "Insert a xml_set_processing_instruction_handler statement. Set up processing instruction (PI) handler " - "" - '(setq parser (skeleton-read "parser: ")) - '(setq handler (skeleton-read "handler: ")) - > "xml_set_processing_instruction_handler(" parser ", " handler ");" \n -) - -(define-skeleton php-xml_set_start_namespace_decl_handler - "Insert a xml_set_start_namespace_decl_handler statement. Set up start namespace declaration handler " - "" - '(setq parser (skeleton-read "parser: ")) - '(setq handler (skeleton-read "handler: ")) - > "xml_set_start_namespace_decl_handler(" parser ", " handler ");" \n -) - -(define-skeleton php-xml_set_unparsed_entity_decl_handler - "Insert a xml_set_unparsed_entity_decl_handler statement. Set up unparsed entity declaration handler " - "" - '(setq parser (skeleton-read "parser: ")) - '(setq handler (skeleton-read "handler: ")) - > "xml_set_unparsed_entity_decl_handler(" parser ", " handler ");" \n -) diff --git a/skeleton/php-xmlreader.el b/skeleton/php-xmlreader.el deleted file mode 100644 index b0008372..00000000 --- a/skeleton/php-xmlreader.el +++ /dev/null @@ -1,15 +0,0 @@ -;; XML Reader -;; More see file:///usr/share/doc/php-doc/html/book.xmlreader.html -;; http://php.net/manual/en/class.xmlreader.php - -(define-skeleton php-xmlreader - "Insert a new xmlreader object" - "" - > "$" (skeleton-read "Var? ") " = new XMLReader();" \n -) - -(define-skeleton php-xmlreader-open - "Insert a new xmlreader object" - "" - > (skeleton-read "Var? ") "->open(" (skeleton-read "File? ") ")" \n -)