Esempio n. 1
0
 /**
  * Get the fields used by the channels in the specified collection
  * @param  \rsanchez\Deep\Collection\ChannelCollection $channels
  * @return \rsanchez\Deep\Collection\FieldCollection
  */
 public function getFieldsByChannelCollection(ChannelCollection $channels)
 {
     $this->boot();
     $fields = new FieldCollection();
     foreach ($channels as $channel) {
         foreach ($channel->fields as $field) {
             $fields->push($field);
         }
     }
     return $fields;
 }
Esempio n. 2
0
 /**
  * Get the field IDs for the specified fieldtype
  *
  * @param  string $fieldtype
  * @return array
  */
 public function getFieldIdsByFieldtype($fieldtype)
 {
     return $this->fields->getFieldIdsByFieldtype($fieldtype);
 }