Esempio n. 1
0
 /**
  * @brief Get all parts which are located in this storelocation
  *
  * @param boolean $recursive                if true, the parts of all sub-storelocations will be listed too
  * @param boolean $hide_obsolete_and_zero   if true, obsolete parts with "instock == 0" will not be returned
  *
  * @retval array        all parts as a one-dimensional array of Part objects
  *
  * @throws Exception    if there was an error
  *
  * @see PartsContainingDBElement::get_parts()
  */
 public function get_parts($recursive = false, $hide_obsolete_and_zero = false)
 {
     return parent::get_parts('id_storelocation', $recursive, $hide_obsolete_and_zero);
 }
Esempio n. 2
0
 /**
  * @brief Get all parts which have this footprint
  *
  * @param boolean $recursive                if true, the parts of all sub-footprints will be listed too
  * @param boolean $hide_obsolete_and_zero   if true, obsolete parts with "instock == 0" will not be returned
  *
  * @retval array        all parts as a one-dimensional array of Part objects
  *
  * @throws Exception    if there was an error
  *
  * @see PartsContainingDBElement::get_parts()
  */
 public function get_parts($recursive = false, $hide_obsolete_and_zero = false)
 {
     return parent::get_parts('id_footprint', $recursive, $hide_obsolete_and_zero);
 }