Closed (fixed)
Project:
Chaos Tool Suite (ctools)
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
9 Jun 2012 at 22:22 UTC
Updated:
4 Jan 2014 at 02:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dawehnerJust some tracking of the work.
The export tests are running fine, though the import tests are failing completely at the moment.
Comment #2
dawehnerManaged to get it working.
PhpExporterTest::exporterData() could be reused by the yaml exporter.
Comment #3
dawehnerMake it easier for a potential yaml implementation.
Comment #4
dawehnerLets use assertIdentical, based on chx idea.
Comment #5
dawehner.
Comment #6
dawehner.
Comment #7
merlinofchaos commentedI think we should use drupal_var_export over ctools_var_export unless drupal_var_export is missing something key.
Comment #8
merlinofchaos commentedComment #9
dawehnerAdd some documentation and improve the getInfo
Comment #10
merlinofchaos commentedStill needs #7.
Also I learned today we should use "Defines" instead of "Definition of" in the doxy.
Comment #11
aspilicious commentedMerlin that is incorrect for file documentation headers for PSR-0 code.
See: http://drupal.org/node/1353118
Comment #12
dawehnerI'm confused about your last comment, so i asked aspilicious, he pointed me to http://drupal.org/node/1353118 and basically every instance in core uses "Definition of".
Added some documentation on the class itself.
In general i'm sorry i didn't saw both your latest comments in both issues.
Comment #13
damiankloip commentedComment #14
damiankloip commentedNot sure about how this is phrased. How about just 'Defines a ctools PHP exporter.'
I think this needs to have the full namespace, Drupal\ctools\ExporterInterface
Same here.
Tests look like a good start too!
Comment #15
aspilicious commented"Definition of" is fine in @file header. I stronly recommend readng the docs dawhener linked in #12.
Comment #16
dawehnerFixed documentation of export/import.
Comment #17
aspilicious commentedI think this is missing a space before the *
Comment #18
damiankloip commented@aspilicious, that isn't the part I wanted to highlight, my mistake. I am ok with what should be in a @file header, I don't think 'Defines a ctools PHP exporter.' would make sense there.
@dawehner: the line I was referring to was: "Defines a ctools exporter which uses PHP to dump the config."
Comment #19
damiankloip commentedHere is an updated patch, with aspilicious' observation in too.
I have also removed the current ExporterPHP.php file, and changed the default info array in ctools_exportable_get_info() to use PhpExporter instead of ExporterPHP.
I think we might be good to go with this now.
Comment #20
merlinofchaos commentedComment #21
damiankloip commented#19: 1624952-php-exporter-19.patch queued for re-testing.
Comment #22
damiankloip commentedCommitted, http://drupalcode.org/project/ctools.git/commit/4419b52