Difference between revisions of "Assembly line objects"

From Apibot
Jump to: navigation, search
(+ linking methods (more are to be added))
m (+ process())
Line 17: Line 17:
 
* <code>unlink ( $object, $backcall = true )</code> - unlinks <code>$object</code> (must be a line object, linked after this one) from this one. If <code>$backcall</code> is true, makes <code>$object</code> also unlink from this one (this is the typical case). If <code>$backcall</code> is false, <code>$object</code> will not be unlinked from this one (do this only if you know VERY well what you are doing).
 
* <code>unlink ( $object, $backcall = true )</code> - unlinks <code>$object</code> (must be a line object, linked after this one) from this one. If <code>$backcall</code> is true, makes <code>$object</code> also unlink from this one (this is the typical case). If <code>$backcall</code> is false, <code>$object</code> will not be unlinked from this one (do this only if you know VERY well what you are doing).
 
* <code>unlink_from ( $object, $backcall = true )</code> - unlinks <code>$object</code> (must be a line object this one is linked after) from this one. If <code>$backcall</code> is true, makes <code>$object</code> also unlink from this one (this is the typical case). If <code>$backcall</code> is false, <code>$object</code> will not be unlinked from this one (do this only if you know VERY well what you are doing).
 
* <code>unlink_from ( $object, $backcall = true )</code> - unlinks <code>$object</code> (must be a line object this one is linked after) from this one. If <code>$backcall</code> is true, makes <code>$object</code> also unlink from this one (this is the typical case). If <code>$backcall</code> is false, <code>$object</code> will not be unlinked from this one (do this only if you know VERY well what you are doing).
 +
 +
* <code>process ( &$signal )</code> - processes a signal (incl. propagates it to the line objects after this one).
  
 
== See also ==
 
== See also ==

Revision as of 15:35, 5 November 2014

All Assembly line objects share some common features. They inherit those from the Line_Slot class, from which all their classes ultimately descend.

Public properties

  • $explicit name - in addition to the slot name, which is specific for the objects class, you can assign an explicit name, specific to each object from the same class. Added to the slot name, it forms the full name of the object, and is written in the Apibot logs and some error messages. Default: none.
  • $default_data_key - the key to the signals data block that will be considered default by this object, and processed by it. Default: "*".
  • $preserve_slot_signal_params - typically the object will take parameters from signal parameters group that is named for the object full name, slot name or type name (in that precedence), and will delete this parameters group from the signal. If this property is set to false, the parameters group will not be deleted. If the property is set to a string, the parameters group will be renamed to "type." plus this string, if it was named for the object type, to "name." plus this string, if it was named for the object slot name, and to "object." plus this string, if it was named for the object full name.

Public methods

  • is_linked() - returns true if there is at least one other line object linked to (after) this one, false if there is none.
  • linked_with() - returns an array with all line objects linked to (after) this one.
  • link_with ( $object, $backcall = true ) - links $object (must be a line object) after this one. If $backcall is true, makes $object also linked to this one (this is the typical case). If $backcall is false, $object will not be linked back to this one (do this only if you know VERY well what you are doing).
  • link_to ( $object, $backcall = true ) - links this line object after $object (must be a line object). If $backcall is true, makes $object also linked with this one (this is the typical case). If $backcall is false, $object will not be linked with this one (do this only if you know VERY well what you are doing).
  • unlink ( $object, $backcall = true ) - unlinks $object (must be a line object, linked after this one) from this one. If $backcall is true, makes $object also unlink from this one (this is the typical case). If $backcall is false, $object will not be unlinked from this one (do this only if you know VERY well what you are doing).
  • unlink_from ( $object, $backcall = true ) - unlinks $object (must be a line object this one is linked after) from this one. If $backcall is true, makes $object also unlink from this one (this is the typical case). If $backcall is false, $object will not be unlinked from this one (do this only if you know VERY well what you are doing).
  • process ( &$signal ) - processes a signal (incl. propagates it to the line objects after this one).

See also