Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

JCB! Power

interface DefinitionInterface (Details)

namespace: VDM\Joomla\Interfaces\File

@startuml

interface DefinitionInterface  #Lavender {
  + name() : string
  + fileName() : string
  + extension() : string
  + random() : string
  + size() : int
  + mime() : string
  + filePath() : string
  + toArray() : array
}

note right of DefinitionInterface::name
  Get original client filename.

  since: 5.1.4
  return: string
end note

note left of DefinitionInterface::fileName
  Get filesystem filename.

  since: 5.1.4
  return: string
end note

note right of DefinitionInterface::extension
  Get file extension.

  since: 5.1.4
  return: string
end note

note left of DefinitionInterface::random
  Get random naming fragment (if used).

  since: 5.1.4
  return: string
end note

note right of DefinitionInterface::size
  Get file size (bytes).

  since: 5.1.4
  return: int
end note

note left of DefinitionInterface::mime
  Get MIME type.

  since: 5.1.4
  return: string
end note

note right of DefinitionInterface::filePath
  Get absolute file path.

  since: 5.1.4
  return: string
end note

note left of DefinitionInterface::toArray
  Export file information as array.

  since: 5.1.4
  return: array
end note

@enduml

The Power feature in JCB allows you to write PHP classes and their implementations, making it easy to include them in your Joomla project. JCB handles linking, autoloading, namespacing, and folder structure creation for you.

By using the SPK (Super Power Key) in your custom code (replacing the class name in your code with the SPK), JCB will automatically pull the Power from the repository into your project. This makes it available in your JCB instance, allowing you to edit and include the class in your generated Joomla component.

JCB uses placeholders like [[[NamespacePrefix]]] and [[[ComponentNamespace]]] in namespacing to prevent collisions and improve reusability across different JCB systems.

You can also set the JCB powers path globally or per component under the Dynamic Integration tab, providing flexibility and maintainability.

To add this specific Power to your project in JCB:

Simply use this SPK:

Super---3b7cd7fc_3e7c_4eaf_b156_7eb3ea744952---Power

Remember to replace the --- with ___ to activate this Power in your code.


Joomla Volunteer Portal Octoleo Llewellyn Telegram Mastodon X (Twitter) GitHub YouTube n8n Docker Hub Open Collective GPG Key