#012261: remote_id is not considered in eZContentFunctions::createAndPublishObject()

Description:

When using the very useful eZContentFunctions::createAndPublishObject() method, you can't set a remote_id.
I've patched the file so it can be possible. You can set a key 'remote_id' in $params array :


$params['remote_id'] = 'MyRemoteID';

I've attached a diff file so you can be able to patch this file easily


Environment:

Operating System: MacOS 10.5
PHP Version: 4.4.7
Database and version: MySQL 5.021
Browser (and version): Firefox 2.0.11


- Attachments
ezcontentfunctions.diff (1.8 kb)
[Download] [Permanent Link]

- Comments

Little addendum : This method should also take into account the SectionID

#262081 by Jérôme Vieilledent on June 26th, 2009 [Permanent Link]

Fixed in trunk, in rev. 23743

#262082 by Jérôme Renard on June 26th, 2009 [Permanent Link]

The fix doesn't strictly follow eZ Publish coding standards, it lacks some spaces around parenthesis. By the way, it's an opportunity to add a phpdoc comment to this very insteresting and well hidden method :-)

#262090 by Damien Pobel on June 26th, 2009 [Permanent Link]

Coding standards issue fixed.

I also wrote some documentation and added an example.

Cheers :)

#262095 by Jérôme Renard on June 29th, 2009 [Permanent Link]

The enhancement is implemented. I move it to Closed.

#272123 by Geir Arne Waaler on October 28th, 2011 [Permanent Link]

- History
Properties
Type Enhancement
Priority Medium
Component Misc
Affects 3.9.4
4.0.6
4.1.3
Fix Version 4.2.0alpha1
Reporter Jérôme Vieilledent
Responsible Jérôme Renard
Status 0 Closed
Resolution Implemented
Created December 16th, 2007
Updated October 28th, 2011
Resolved June 26th, 2009
 
Navigation [Permanent Link]
Previous Issue
Back to Issues List
Next Issue: #019127
  DB Deadlocks on ezcontentobject_tree when updating subnode