prepare( $args ); return $this->getRecords( $args ); } /** * Get list of datasheets and corresponding required arguments * * @param array $args * * @return array */ public function getDataSheetArgs( array $args = [] ){ // convert array of objects to associate array $sheets = $this->getRecords( $args ); return JSON::decode( JSON::encode( $sheets ), true ); } /** * Get list of asset groups for this dataSource * * @param $args * * @return array */ public function getAssets( $args ){ $assetGroupNames = $this->getAssetGroupNames(); $groups = []; foreach( $assetGroupNames as $assetGroupName ){ $groups[ $assetGroupName ] = $args; } return \Depicter::dataSource()->tagsManager()->getAssetsInGroups( $groups ); } }